Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.6.2
-
None
Description
The attached example can be started without any problems but it should not.
In MySingleton.qml line 7 is a missing required property that should lead to an error.
When I use the same code in Main.qml (uncomment lines 4-9) I can see the right behavior:
QQmlApplicationEngine failed to create component qrc:/qt/qml/ExampleSingleton/MyData.qml:5:2: Required property myData2 was not initialized
Attachments
Issue Links
- duplicates
-
QTBUG-122784 QtQuick: Unset required property in Singleton is not an error?
-
- Closed
-