Vertical ListView inside horizontal SwipeView buggy scrolling



  • So I have got some vertical ListViews inside a SwipeView:

    SwipeView{
        ListView{
            orientation: ListView.Vertical
        }
        ListView{
            orientation: ListView.Vertical
        }
        ListView{
            orientation: ListView.Vertical
        }
    }
    

    Now this is a common UI pattern on mobile platform. Everything seems to work well, however the scrolling has some problems. Many times when I am scrolling the ListView vertically the application 'confuses' the touch event for a horizontal touch event and scroll the SwipeView horizontally and at other times the opposite happens. Now this is expected as it is hard to infer the user's intention 100% of the time, however I have tried to write the same UI in native Java on Android and these "uncertainties" in the scrolling are almost non-existent. Is there any way to improve this? I have looked around and found nothing.



  • Hi ,

    you can use the SwipeView property interactive, to look when ListView are scrolling and enable in ListView when SwipeView scrolling



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.