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

ListView flickers when using keys to navigate between items in a VisualItemModel

    XMLWordPrintable

Details

    Description

      Run the following code. Press down and observe that as the view changes its current item to the yellow square, the first (red) square disappears and then is re-painted, causing a flicker.

      import QtQuick 2.0
      
      Item {
          id: root
      
          property real panelSize: 150
      
          width: 200; height: 200
      
          ListView {
              width: 200; height: 200
      
              model: VisualItemModel {
                  Rectangle { width: root.panelSize; height: root.panelSize; color: "red" }
                  Rectangle { width: root.panelSize; height: root.panelSize; color: "yellow" }
                  Rectangle { width: root.panelSize; height: root.panelSize; color: "blue" }
              }
      
              focus: true
              highlightMoveDuration: 2000
          }
      }
      

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            bealam Bea Lam (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes