Created
November 17, 2018 18:28
-
-
Save scope2229/cebeb4e74e090f7e142620c90c55b1dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rectangle{ | |
id: myPage | |
color: "#565656" | |
width: parent.width | |
height: parent.height | |
ScrollView{ | |
Layout.fillWidth: true | |
Rectangle{ | |
id: scrollView | |
Layout.fillWidth: true | |
width: myPage.width | |
height: myPage.height | |
color: "blue" | |
Rectangle{ | |
width: 100 | |
height: 100 | |
color: "red" | |
} | |
Rectangle{ | |
anchors.horizontalCenter: scrollView.horizontalCenter | |
width: 100 | |
height: 100 | |
color: "black" | |
} | |
Rectangle{ | |
width: 100 | |
height: 100 | |
color: "green" | |
anchors.right: parent.right | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment