View Full Version : How to get Scaled size
rogerholmes
7th March 2010, 05:16
How do you get the new height and width of a scaled qgraphicspixmapitem?
prof.ebral
7th March 2010, 06:05
http://doc.qt.nokia.com/4.6/qgraphicsitem.html#scale
aamer4yu
7th March 2010, 10:38
boundingRect() * scaleFactor
mhoover
20th March 2010, 16:12
Thanks aamer4yu!
I thought (mistakenly) the x/y/width/height were changed by the scale, but they weren't.
This causes my code to work now.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.