Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Exception thrown when using QML ListView
Forum Updated to NodeBB v4.3 + New Features

Exception thrown when using QML ListView

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 285 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Luquin
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved