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. Is this a bug in listview ?

Is this a bug in listview ?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.7k 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.
  • T Offline
    T Offline
    tigriswind
    wrote on last edited by
    #1

    i have a list of page implemented with listview, when i exchange the index internal, the contentX or ContentY will change , even the

    position of listview is not modified. and explicitly this is no limitation for that change.
    
    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      No, it's not a bug. When you change the internal index of listView, you should make sure the currentItem can be display, using this one:
      @
      ListView::positionViewAtIndex ( int index, PositionMode mode )
      @

      Chuck

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tigriswind
        wrote on last edited by
        #3

        if i use the function you advise, this is no animation when exchange the index

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kenotenshi
          wrote on last edited by
          #4

          You are free to add an animation by yourself.

          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