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

Qt-interest Archive, February 2008
QGraphicsItem visible area


Message 1 in thread

I wonder if there's a way to know the visible area of a QGraphicsItem in the paint() method.

The exposedRect parameter of QStyleOptionGraphicsItem object doesn't coincide always with the whole visible area of the item, but only with the area that must be refreshed (e.g. when I scroll, it coincides with the rectangle that wasn't visible before the scroll). But in my application I need to know the whole visible rectangle. There's a way to do this?

Thanks

--
 [ signature omitted ]