Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
6.0.0
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
For Gerrit Dashboard: QTBUG-85199 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
306574,6 | pure-qml: Rename Screen to CompositorScreen | dev | qt/qtwayland | Status: MERGED | +2 | 0 |
307027,4 | Move Screen -> CompositorScreen in examples | dev | qt/qtwayland | Status: MERGED | +2 | 0 |