QML - Move to top #TOP

做~自己de王妃 提交于 2019-12-13 17:25:58

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!