Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Vertical ListView inside horizontal SwipeView buggy scrolling

    QML and Qt Quick
    listview flickable scrolling
    2
    2
    674
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      daljit97 last edited by daljit97

      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.

      1 Reply Last reply Reply Quote 0
      • Diackne
        Diackne last edited by

        Hi ,

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post