Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Vertical ListView inside horizontal SwipeView buggy scrolling
Forum Updated to NodeBB v4.3 + New Features

Vertical ListView inside horizontal SwipeView buggy scrolling

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
listviewflickablescrolling
2 Posts 2 Posters 948 Views
  • 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 Offline
    D Offline
    daljit97
    wrote on 5 Jul 2018, 00:03 last edited by daljit97 7 May 2018, 00:04
    #1

    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
    0
    • D Offline
      D Offline
      Diackne
      wrote on 30 Jul 2018, 16:52 last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved