[英]Qt QML nested listview, weird scrolling behaviour
I am having a problem concerning the scrolling behaviour of a ListView
. 我有一个关于
ListView
的滚动行为的问题。 When nesting lists, the inner lists were able to scroll up and down, which looks very ugly. 嵌套列表时,内部列表能够向上和向下滚动,这看起来非常难看。
To avoid the problem I set the inner lists boundsBehavior
to Flickable.StopAtBounds
. 为了避免这个问题,我将内部列表
boundsBehavior
设置为Flickable.StopAtBounds
。 It solved the problem and the inner lists just looks like commond delegates. 它解决了问题,内部列表看起来像commond代表。 However, the scrolling behaviour appears to be a little bit weird.
但是,滚动行为似乎有点奇怪。 Scrolling upwards works perfectly fine but if you want to scroll downwards, you have to move your finger in the opposite direction for at least just a millimeter.
向上滚动效果非常好但如果要向下滚动,则必须将手指向相反方向移动至少一毫米。 It seems like you first have to activate downwards scrolling to actually scroll upwards.
看起来你首先必须激活向下滚动才能实际向上滚动。
How would I fix this? 我该如何解决这个问题?
不确定这适合您的使用案例,但是使用转发器而不是内部列表呢?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.