Flickable{
Button{
onClicked: parent.?????????
}
Or do I have to create a function for this?
Flickable{
Button{
onClicked: parent.?????????
}
Or do I have to create a function for this?
You can make a Flickable scroll to a specific point by setting the contentY property of a Flickable. Quoting the official documentation from qt-project.org,
ContentY holds the surface coordinate currently at the top-left corner of the Flickable. For example, if you flick an image up 100 pixels, contentY will be 100.
So if you want to scroll a Flickable smoothly with the press of a button, you could animate the contentY property change like,
Behavior on contentY {
UbuntuNumberAnimation {}
}
This will gradually change the value of contentY instead of setting it to its final value abruptly.
You can find more about the contentY property here.