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

Application doesn't respond for some ListView configuration.

XMLWordPrintable

    • Linux/X11, Windows

      import QtQuick 2.12
      
      
      Item {
          id: root
          width: 640
          height: 480
      
          ListView {
              focus: true
              anchors.fill: parent
              model: 10
              header: Rectangle {
                  width: 640
                  height: 50
                  color: "green"
                  z: 11
                  opacity: 0.5
              }
              headerPositioning: ListView.OverlayHeader
              spacing: 50
              snapMode: ListView.SnapToItem
              preferredHighlightBegin: 0.1
              preferredHighlightEnd: 0.1
              highlightRangeMode: ListView.ApplyRange
      
              delegate: Rectangle {
                  width: 640
                  height: 100
                  color: ListView.isCurrentItem ? "red" : "blue"
      
              }
          }
      }
      

      This ListView configuration causes the application to hang.

        1. tmp.7z
          0.7 kB
          Kolchin Evgeny
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            juri.valdmann Jüri Valdmann (Inactive)
            evgeniy_kolchin Kolchin Evgeny
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes