Is it possible to assign 1 component to another of the same type in this way?
MyQml.qml
Item{
property int var1
property string var 2
property int var3
}
and in another file:
main.qml
MyQml{
id: myQml1
var1: 2
var2:'hello'
var3: 4
}
MyQml{
id:myQml2
}
onSomeSignal:{
myQml2 = myQml1
}
↧