简体   繁体   中英

QML - Move to top #TOP

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?

您应该能够将Flickable的contentY属性设置为0。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM