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

If Button is used as delegate of ListView then application fails

    XMLWordPrintable

Details

    • Windows
    • 0c2adb5652480f7546fadb78b652a09294c4e646 (qt/qtquickcontrols2/dev) 532b3c3ab86b7ffea5da71a9048b95ab43862e05 (qt/qtquickcontrols2/6.2) c662301da36300b5f9f101e88e2cdccc06714983 (qt/qtquickcontrols2/6.1)

    Description

      QML source:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          ListView {
              anchors.fill: parent
              model: 100
              delegate: Button {
                  text: model.index
              }
          }
      }
      

      If you run this application and try to scroll its window content it fails.
      The full project code is in ButtonsInList-1.zip.

       

      Attachments

        Activity

          People

            smd Jan Arve
            andrey_e andrey_e
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: