Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved Scrolling in the same direction within a Flickable inside a ListView

    QML and Qt Quick
    2
    2
    234
    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

      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 Reply Quote 0
      • 6thC
        6thC last edited by

        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 Reply Quote 0
        • First post
          Last post