Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15, 6.2
-
79f9e22ef7 (qt/qtdeclarative/dev) 79f9e22ef7 (qt/tqtc-qtdeclarative/dev)
Description
If invalid properties are passed to QQmlComponent::createWithInitialProperties or QQmlComponent::setInitialProperties, QQmlComponent goes into the error state and is impossible to use again. See the attached testcase.
Those properties are set for a single instance, so I wouldn't expect them to break the component.
A workaround is to reach into QQmlComponentPrivate and clear the errors after that happens:
QQmlComponentPrivate::get(component)->state.errors.clear();
Attachments
For Gerrit Dashboard: QTBUG-101439 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
416170,6 | Do not store instantiation errors in QQmlComponent | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |