Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.2.0 Beta1
-
None
-
f0d2857271a2e619d6ede54a6855326e9232fd12 (qtdeclarative)
Description
The snippet below will assert in QQmlAdaptorModel::setModel because it assumes a QVariant of a QObject derived type cannot be null.
Changing the type of the model property from ListModel prevents the crash.
Item { id: root width: 100 height: 100 property ListModel model ListView { model: root.model } }
Attachments
Issue Links
- replaces
-
QTBUG-36226 Crash when using QList<QObjectSubclass*> property in QML
- Closed