Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, February 2007
Inexperienced with QGraphicsView. Help with boundingRect


Message 1 in thread

Hi,
finally I have the time and the need to work with the QGraphics* system.
But at once I ran into a (hopefully) small problem. How do I get the 
'scaled' bounding rect?

I currently create an QGraphicsPixmapItem and scale it to my needs.
Unfortunately:

Although the item's shape can be arbitrary, the bounding rect is always 
rectangular, and it is unaffected by the items' transformation (scale(), 
rotate(), etc.).

How do I get an affected by the items' transformation?

Is this behaviour of boundingRect() useful at all? I mean what use can a 
bounding rect have, which does not scale with the actual visible size of 
its object?

Guido


--
 [ signature omitted ]