[Interest] Drawing artifacts when scrolling QGraphicsView on OS X

Jelmer van der Linde jelmer at ikhoefgeen.nl
Fri Jun 8 13:52:26 CEST 2012


I get drawing issues when I simultaneously scroll and track the mouse
to let a (home made) tooltip follow it. It looks as if Qt fails to
track which part of the image should be redrawn. (screenshot:

Is this a bug, or is my drawing code incomplete? The artifacts only
happen on OS X, with QT 4.8 or newer. A small example program (my
original program, but stripped down to a bare minimum) can be found
here: https://gist.github.com/gists/2843603 (cmake . && make && ./dact
should do)

Currently I do have a workaround that manually invalidates parts of the
scene, but this slows scrolling tremendously. (source: https://github.com/rug-compling/dact/commit/cdbf57d8ee5bf447b838756649ab395a279efbf2)

Any input is welcome.

Thank you
~ Jelmer

More information about the Interest mailing list