PDA

View Full Version : QDial's background image gets corrupted when I pan or scroll the QGraphicsView



dpatel
14th July 2010, 14:48
Hi,

I am painting a background image for QDial (by subclassing QDial and overriding paintEvent()). It gets displayed properly. But when I display the dial on QGRaphicsView and pan the view or scroll view, the back ground image of QDial gets corrupted/distorted and then when I zoom in/ zoom out it gets redrawn properly.

Do I have to redraw/refresh (not sure if this can be done) the complete QGraphicsView on panning and scrolling.

Can you tell me how to fix this issue.

Thanks