[Qt-interest] Rescalable QGraphicsGroup

Nadia Pio nadiapio at gmail.com
Mon Feb 2 19:03:34 CET 2009


Hi,

I need to scale a custom QGraphicsItemGroup given a bigger or smaller
bounding rect.
Is there something like the QPixmap::scaled function also for
QGraphicsItemGroup??
If no, which is, in your opinion,  the best/most efficient way to know
the scale factor by which scale this groupitem??
My idea is to try repeatedly to scale the group item increasing or
decreasing the scale factor, until the item's bounding rect is quite
similar to the given one...but I think it's a bad idea...

Thank you.
Nadia



More information about the Qt-interest-old mailing list