You can easily draw a rectangle around any item with a Rectangle
Item {
// any item you have
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: "red"
}
}
Item {
// any item you have
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: "red"
}
}
To copy to clipboard, switch view to plain text mode
You can move the Rectangle code into a helper file, e.g. "SizeHint.qml" and then use it like this
Item {
// any item you have
SizeHint {}
}
Item {
// any item you have
SizeHint {}
}
To copy to clipboard, switch view to plain text mode
And, last but not least, there is GammaRay
Cheers,
_
Bookmarks