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. Scrolling in the same direction within a Flickable inside a ListView

Scrolling in the same direction within a Flickable inside a ListView

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 423 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 last edited by
    #1

    So I have got a ListView with a delegate that contains a Flickable (Page{Flickable{}}). So the delegate is made up of an image and a text that are meant to scrolled up vertically and the ListView is also vertical. What I want to achieve is when the user reaches the end of the Flickable, it should be able to still swipe up and switch to the next element in the list (in the same way, when at top swipe down to go to the previous element in the ListView). How can I achieve this?

    1 Reply Last reply
    0
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      I've not done it but could you use:
      http://doc.qt.io/qt-5/qml-qtquick-flickable.html#verticalOvershoot-prop
      and ++ || -- on
      http://doc.qt.io/qt-5/qml-qtquick-listview.html#currentIndex-prop
      ?

      Not sure if that's "how it's done" but that's how I'd be thinking.

      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