[Qt-interest] paint one image over other continously
Samuel Rødal
sroedal at trolltech.com
Fri Sep 25 11:43:46 CEST 2009
Alessandro Portale wrote:
> Two possible solutions:
>
> The first thing you may try is setting the Qt::WA_OpaquePaintEvent
> attribute of the displaying widget
> See...
> http://doc.qt.nokia.com/latest/qt.html#WidgetAttribute-enum
> ...and...
> http://doc.qt.nokia.com/latest/qwidget.html#setAttribute
> That will avoid that the widget is cleared between to paint events.
You might need the Qt::WA_NoSystemBackground flag too, and possibly do
setAutoFillBackground(false) on the widget to prevent Qt from
overwriting the background in between the paint events.
--
Samuel
More information about the Qt-interest-old
mailing list