Qt Forum

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

    Call for Presentations - Qt World Summit

    Unsolved Listview animation on reaching the boundaries

    QML and Qt Quick
    2
    4
    891
    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.
    • B
      Belluri Uthej Reddy last edited by

      Hello

      I have a list of 20 elements in vertical orientation. I want listview to show an animation similar to the android phone on reaching the top boundary indicating the end of the elements.

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

        Hi,

        this kind of effects come out of the box with V-Play! They are built into the AppListView component.

        Just have a look at this:

        alt text

        It's only a few lines of codes:

         AppListView {
           model: ListModel {
             ListElement { name: "Banana" }
             ListElement { name: "Apple" }
             ListElement { name: "Potato" }
           }
           delegate: SimpleRow { text: name }
         }
        

        All the best,
        Lorenz

        Developer @ V-Play Engine - http://v-play.net/qt

        V-Play simplifies

        • Game Development with Qt
        • Mobile App Dev with Qt esp. iOS & Android

        What others say
        V-Play scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

        1 Reply Last reply Reply Quote 0
        • B
          Belluri Uthej Reddy last edited by

          @Lorenz
          Hello Lorenz, thanks for the reply. Can't we use the basic Qml operations to perform those things without including other software.

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

            Hi,

            Sorry for the late reply!

            Yes, that is exactly what V-Play does, so you don't have to implement it yourself ;)

            Have a look at this:
            http://doc.qt.io/qt-5/qml-qtquick-flickable.html#rebound-prop

            Cheers,
            Lorenz

            Developer @ V-Play Engine - http://v-play.net/qt

            V-Play simplifies

            • Game Development with Qt
            • Mobile App Dev with Qt esp. iOS & Android

            What others say
            V-Play scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

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