[Interest] Drawing artifacts when scrolling QGraphicsView on OS X

Jordi Pujol pisoengracia at gmail.com
Fri Jun 8 14:19:06 CEST 2012


Hi Jelmer,

Just a clue, without looking at your code : ensure your tooltip's
bounding rect is greater than the tooltip itself. I mean ALL the
tooltip, text and grey-box-background.

This error appears when you don't take care of this. QGraphicsView only
invalidates the rect returned by the method you (may) have overloaded in
your custom class :

QRectF QGraphicsItem::boundingRect () const

So first, try to make this QRectF a little bit bigger. Looking at the
screenshot it seems is smaller than it must...

	J.




More information about the Interest mailing list