开发者

QML - Move to top #TOP

开发者 https://www.devze.com 2023-04-08 02:50 出处:网络
I am using a Flickable which is embedded in a Rectangle. There is a button in the bottom of the rectangle.

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 th开发者_Go百科e button my Flickable will move to top. Its almost like #TOP in HTML. Is anybody have an idea how to achieve this?


You should be able to set Flickable's contentY property to 0.

0

精彩评论

暂无评论...
验证码 换一张
取 消