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 ViewTransition when model is QQmlListProperty

ListView ViewTransition when model is QQmlListProperty

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 712 Views 2 Watching
  • 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.
  • T Offline
    T Offline
    themts
    wrote on last edited by
    #1

    Hey guys,

    I want to give my listView some transition-animations but it just won't work.
    My ListView's model is from type QQmlListProperty<MyCustomClass>.
    Actually I don't even know how the ListView detects if an item has moved inside my model list.

    In my main.qml I just set this:

    MainForm {
        lvMisc.displaced: Transition {
            NumberAnimation { properties: "x,y"; duration: 400; easing.type: Easing.OutBounce }
        }
    }
    

    Unfortunately I don't see any animation.
    What am I missing here?

    CU
    mts

    p3c0P 1 Reply Last reply
    0
    • T themts

      Hey guys,

      I want to give my listView some transition-animations but it just won't work.
      My ListView's model is from type QQmlListProperty<MyCustomClass>.
      Actually I don't even know how the ListView detects if an item has moved inside my model list.

      In my main.qml I just set this:

      MainForm {
          lvMisc.displaced: Transition {
              NumberAnimation { properties: "x,y"; duration: 400; easing.type: Easing.OutBounce }
          }
      }
      

      Unfortunately I don't see any animation.
      What am I missing here?

      CU
      mts

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @themts Does add: Transition { } work inside ListView ?

      157

      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