Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Invalid
-
Affects Version/s: 6.0.0
-
Fix Version/s: 6.0
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:
-
Platform/s:
Description
Found when testing pure-qml example in Qt Wayland. The example has a local type called "Screen" and instantiates this in main.qml. In Qt 5, this worked fine, but in Qt 6, it now gives the error
qrc:/qml/main.qml:57:5: Screen can only be used via the attached property.
Changing the name to "CompositorScreen" fixes the issue, so it is probably resolving to the built-in type instead of the local type.
Attachments
Issue Links
- is required for
-
QTBUG-78673 QtWayland (client and compositor) on QRhi + OpenGL
-
- Closed
-