Details
-
Task
-
Resolution: Won't Do
-
P2: Important
-
None
Description
In order to manage differing behavior between QML version 2 and version 3 we need a way to declare which version of the language a particular file should use. The following options should be provided:
- A "pragma version {2|3}" in the header of the QML file. This has the highest priority
- The file ending. "qml" weakly hints to version 2, "qml3" forces version 3. A file ending in "qml3" with "pragma version 2" in the header should be a compile error.
- Failing to detect any of the above, Qt5 will assume version 2 and Qt6 will assume version 3. This should produce a warning, already in Qt5.
Attachments
Issue Links
- relates to
-
QTBUG-71278 Imports and versioning in QML
- Closed
-
QTBUG-77529 Overriding QQmlListProperty in QML appends instead of replacing
- Closed