I have one QML file
QMLFile1.qml
Rectangle{
id: LogicFile
property int characters
property bool checked
}
In second QML file QMLFile2.qml
If I try and instantiate the first file in a second file like this
Rectangle{
QMLFile1{
// unable to access the
//properties here id: LogicFile
// property int characters
//property bool checked
}
}
Why I am unable to access the properties of first QMLFile inside the second.
However if I instantiate the firstQML file in the second file directly i.e., not inside any element like rectangle , item etc all the properties are accessible why is it so?