简体   繁体   中英

Qt QML nested listview, weird scrolling behaviour

I am having a problem concerning the scrolling behaviour of a 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 . It solved the problem and the inner lists just looks like commond delegates. 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?

不确定这适合您的使用案例,但是使用转发器而不是内部列表呢?

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