I have write some lines to convert the QT analog clock example to a chronometer (with a second and cent-second indicator).
Ok, I have thought that I can draw the hour,minute and second every second, and the cent-second indicator every 10 miliseconds. (both using the paintevent fired by the timer)
When I 'm going to draw the cent-second, first I draw the image on the widget :
Qt Code:
  1. QPainter painter(this);
  2. painter.drawImage(image.rect(), image, image.rect());
To copy to clipboard, switch view to plain text mode 
And I have a flicker ...

I use :
To create the image :
image= QImage(x, y, QImage::Format_ARGB32_Premultiplied); (x, y are the size)
To use it :
QPainter painter(&image);
image.fill(qRgba(255, 255, 255,0));
and after 'painter' functions.

What I doing bad ? I have tried with format and fill color ...
Any help, please.