[Qt-interest] Map to view from inside QGraphicsItem::paint()
Josiah Bryan
jbryan at productiveconcepts.com
Mon Oct 19 04:31:41 CEST 2009
Hi All -
Is there any way for me to be able to map my bounding rect inside a
QGraphicsItem::paint() call to the actual pixel size on the screen?
This is for the purpose of scaling large pixmaps to the "right" size. If
my item is scaled up, and I only render the pixmap at the size of my
item, the final pixmap will implicitly be scaled up by the view/scene
scaling. I want to cache the scaled pixmap size that is the actual
screen size and render a good quality pixmap at the same time.
Any ideas?
Thanks!
-josiah
More information about the Qt-interest-old
mailing list