How to load a component from qml file in loader
I have component definition in a.qml. I want to load this component in main.qml.
It's throwing error saying reference error. Tried with source:"a.qml". I am doing something wrong.
If you are using different file use source instead of sourceComponent and set it to QML file.
Tried with source:“a.qml”
couldn't load component. If same component code available in main.qml, then it is able to load.
Try removing the Component from a.qml. Just keep the Rectangle.