问题
I am using a Flickable
which is embedded in a Rectangle.
There is a button in the bottom of the rectangle.
My requirement is when I press the button my Flickable will move to top.
Its almost like #TOP in HTML.
Is anybody have an idea how to achieve this?
回答1:
You should be able to set Flickable's contentY property to 0.
来源:https://stackoverflow.com/questions/7564558/qml-move-to-top-top