Embedding one QML into another QML not working in Embedded Qt
Solved
Mobile and Embedded
-
For example, I created a Rectangle QML file and want to use it in main QML. No errors are thrown or even app didn't crashed but the embedded QML is not rendered. My platform is custom Linux with EGLFS plugin on Qt Embedded 5.4
-
@Saisyam Hi! Please show us your main.cpp and main.qml.
-
hi,
you can use LoaderRectangle { id : r1; anchors.fill: parent; Loader { id : l1; anchors.fill : parent; source : "page2.qml"; } }
this works for me on windows android linux
-
Thanks for the reply. Apologies for responding so late. I will try and get back to you.
-
It is working fine. Thanks for the help