Details
-
User Story
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
QDS 2D - 2021 Week 41/42
Description
QML supports folder import.
main.qml
Screen01.ui.qml
fsubfolder1/SomeSubComponent.ui.qml
Screen01.ui.qml would contain:
import QtQuick
import "fsubfolder1"
Item {
SomeSubComponent {
}
}
In this case 'fsubfolder1/SomeSubComponent.ui.qml' is not a different module (And there is no extra qmldir file). This means that SomeSubComponent.ui.qml can be added in the same cmakefiles.txt like Screen01.ui.qml. Ideally this simply works out of the box.