Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101655

[Reg 6.1 -> 6.2] Error creating inline component in Qt 6.2

    XMLWordPrintable

Details

    • Windows
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ulherman Ulf Hermann
              benjamin.hadra Benjamin Hadra
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes