[英]QML - Move to top #TOP
I am using a Flickable
which is embedded in a Rectangle. 我正在使用嵌入矩形中的
Flickable
。 There is a button in the bottom of the rectangle. 矩形的底部有一个按钮。 My requirement is when I press the button my Flickable will move to top.
我的要求是,当我按下按钮时,我的Flickable将移至顶部。 Its almost like #TOP in HTML.
它几乎就像HTML中的#TOP。 Is anybody have an idea how to achieve this?
有谁知道如何实现这一目标?
您应该能够将Flickable的contentY属性设置为0。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.