Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2, 6.3.1, 6.3, 6.4.0 Beta1, 6.4
-
6.2.0
-
-
45dcac12e5 (qt/qtdeclarative/dev) 45dcac12e5 (qt/tqtc-qtdeclarative/dev) 02ef073c31 (qt/qtdeclarative/6.3) 02ef073c31 (qt/tqtc-qtdeclarative/6.3)
Description
When trying to add a layer effect or a repeater to an inline component in QML an error occurs which reads "Component elements may not contain properties other than id".
This works as expected in Qt 5.15, however it seems this no longer works in Qt 6
An example of some simple code that produces the error is attached.
The documentation for declaring inline components in Qt 6 does not mention creating a inline components using this method, it could also be worth updating the documentation to explain this in Qt 6 as it is explained in the Qt 5.15 documentation as can be seen with the below links.
https://doc.qt.io/qt-5/qtqml-documents-definetypes.html#inline-components
https://doc.qt.io/qt-6/qtqml-typesystem-objecttypes.html#defining-object-types-through-qml-documents
Attachments
Issue Links
- relates to
-
QTBUG-102719 [Reg 5.15 -> 6.1] Not possible to use Loader inside inline component
-
- Closed
-