PDA

View Full Version : Q3Canvas problem (zoomed in drawBackground)



Pieter from Belgium
10th October 2006, 14:05
While migrating to Qt 4, a QCanvas subclass became a Q3Canvas subclass. The behaviour of drawBackground seems to have changed. When zoomed in and scrolling, drawing is clipped somewhat at the borders.

This is illustrated in the following screenshot:

http://www.cs.kuleuven.be/~pieter/canvasproblem1.png

There is a small white border between the visible content pixels and the scrollbars.
When scrolling, this gives rise to a more or less regular pattern of horizontal resp. vertical white bars.
I am certain that I do draw the missing pixels to the painter, but the seem to disappear. (In fact, for certainty I first extend the clip with 10 pixels in each direction...)

Has something changed that I am not aware of?

e8johan
11th October 2006, 09:15
I'd suggest that you move to QGraphicsView instead of Q3Canvas. That is just my 0.02USD though...