Skip to content

Instantly share code, notes, and snippets.

@scope2229
Created November 17, 2018 18:28
Show Gist options
  • Save scope2229/cebeb4e74e090f7e142620c90c55b1dd to your computer and use it in GitHub Desktop.
Save scope2229/cebeb4e74e090f7e142620c90c55b1dd to your computer and use it in GitHub Desktop.
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