[Interest] How to get bounding box of a rotated QML Item ?

Gian Maxera gmaxera at gmail.com
Thu Jan 7 12:37:47 CET 2016


Hello,
I have an item that contain a rotated Rectangle. I need to calculate the height and the width of the bounding box of the Rectangle respect to the parent Item. How can I do that ?

Item {
	width: widthOfBoundingBox
	height: heightOfBoundingBox
	Rectangle {
		width: 100
		height: 100
		rotation: 25
	}
}

Thanks,
Gianluca.




More information about the Interest mailing list