Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61269

listview: appending item when highlight moving will result in not visible highlight

    XMLWordPrintable

Details

    • a7880a0c92323ccb2f297a39a993a87e20d65e9c

    Description

      if the currentitem is the last visible item, then down keyevent will result in currentIndex ++, and then highlight moving follow currentItem, the listview will track the highlight.

      but if we append item when highlight moving, the model changed (may be applyModelChanges) will set moveReason = QQuickItemViewPrivate::Other; and it will result in 'trackedPositionChanged' no effect.

      then the listview stop tracking highlight, we can only see part of highlight even no highlight after that.

      Attachments

        1. main.qml
          1 kB
          niqingliang2003
        2. modelChangeKeepingMoveReason.patch
          0.6 kB
          niqingliang2003

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              niqingliang2003 niqingliang2003
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes