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. Listview animation on reaching the boundaries
Qt 6.11 is out! See what's new in the release blog

Listview animation on reaching the boundaries

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.5k 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.
  • B Offline
    B Offline
    Belluri Uthej Reddy
    wrote on last edited by
    #1

    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
    0
    • LorenzL Offline
      LorenzL Offline
      Lorenz
      wrote on last edited by
      #2

      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
      0
      • B Offline
        B Offline
        Belluri Uthej Reddy
        wrote on last edited by
        #3

        @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
        0
        • LorenzL Offline
          LorenzL Offline
          Lorenz
          wrote on last edited by
          #4

          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
          0

          • Login

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