Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 12.0.2
-
None
Description
Documentation tells it's perfectly OK to use inline components in other files
https://doc.qt.io/qt-6/qtqml-documents-definetypes.html#inline-components
In other files, it has to be prefixed with the name of its containing component.
But in Creator it results in error in editor (works in runtime, though)
Main.qml
import QtQuick Window { width: 640 height: 480 visible: true title: qsTr("Hello World") MyComponent {} MyComponent.InlineComponent {} }
MyComponent.qml
import QtQuick
Item {
component InlineComponent: Text { }
InlineComponent {}
}