Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Exception thrown when using QML ListView



  • Dear sir/madam,

    Since yesterday exceptions are thrown whenever I use a QML ListView, even a Qt Creator generated sample. I'm using Qt 5.10 and Qt Creator 4.5. Reinstallation did not help.

    The code below will crash when clicking on a ListView item. The exception will be thrown on launch if the parent ScrollView is removed.

    import QtQuick 2.9
    import QtQuick.Controls 2.2
    
    ApplicationWindow {
        visible: true
        width: 640
        height: 480
        title: qsTr("Scroll")
    
        ScrollView {
            anchors.fill: parent
    
            ListView {
                width: parent.width
                model: 20
                delegate: ItemDelegate {
                    text: "Item " + (index + 1)
                    width: parent.width
                }
            }
        }
    }
    

    The exception message
    Exception details

    Could anyone help me with this issue?


Log in to reply