Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5
-
e3e41aa125 (qt/qtdeclarative/dev) e3e41aa125 (qt/tqtc-qtdeclarative/dev), 6ff2a8db3 (tqtc/lts-6.2)
Description
If a loader is given a source component TreeView which has a required property without a value instead of just giving a warning and the whole app will crash. Won't happen with TableView.
Steps to reproduce the problem:
- Build and run the attached example
Update: The following (simplified) snippet will also cause a crash
import QtQuick.Window import QtQuick.TreeView import Qt.labs.qmlmodels Window { width: 800 height: 600 visible: true Loader { anchors.fill: parent sourceComponent: TreeView { required property int testProperty delegate: DelegateChooser { DelegateChoice { Rectangle { implicitWidth: 100 implicitHeight: 30 } } } } } }
Attachments
For Gerrit Dashboard: QTEXT-7 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
439216,2 | QQuickTableView: protect against delegate being deleted | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
439229,1 | QQuickTableView: protect against delegate being deleted | 6.4 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
439230,1 | QQuickTableView: protect against delegate being deleted | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |
439231,3 | QQuickTableView: protect against delegate being deleted | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |