---------- Mainitem.qml
import QtQuick 1.0
Item1 {
width: 100; height: 100
ItemA1 {
id: square
Rectangle {
color: "red"
width: 10
height: 10
}
}
itemB {}
}
import QtQuick 1.0
Item1 {
width: 100; height: 100
ItemA1 {
id: square
Rectangle {
color: "red"
width: 10
height: 10
}
}
itemB {}
}
To copy to clipboard, switch view to plain text mode
---------- itemB.qml -------------
import QtQuick 1.0
Item2 {
property length: 6
ItemB1 {
id: idc
Rectangle {
color: "red"
width: 10
height: 10
property rectype: 0
}
}
}
import QtQuick 1.0
Item2 {
property length: 6
ItemB1 {
id: idc
Rectangle {
color: "red"
width: 10
height: 10
property rectype: 0
}
}
}
To copy to clipboard, switch view to plain text mode
Hello;
How to read the properties of ItemB1 Rectangle (e.g rectype) from my C++ code (we know only the path to Mainitem.qml)?
Thanks;
Mut
Bookmarks