Include another QML file from a QML file
Let’s assume you have a file called main.qml and a component in another file called MyCustomText.qml. If both files are in the same directory you can directly load the component like this: // in Main.qml Rectangle { id: root MyCustomText { text: “This is my custom text element” } } If MyCustomText.qml is in another … Read more