Details
-
Task
-
Resolution: Done
-
P2: Important
-
5.15
-
None
-
-
684f9df7849bc79f1f02a60844fb43c7a3927d2f (qt/qtdeclarative/5.15)
Description
Currently new composite types require a separate .qml file. To faciliate various features we would like to be able to specify new types also within a .qml file. The proposed syntax introduces a new lower-case component keyword.
Suppose we have Button.qml:
import QtQuick 5.15
Item {
...
component StandardBorder : Rectangle {
property color color;
...
}
...
}
Such QML code would make a new type Button.StandardBorder available for use as regular type for instantiation.
Attachments
Issue Links
- is required for
-
QTBUG-72164 Deprecate grouped properties
- Closed
- relates to
-
QTBUG-73675 Streamline QML for better toolability and performance
- Open