[Qt-interest] Qt, DirectX and MultiThreading

Trond Kjernåsen trond.kjernasen at nokia.com
Fri Apr 16 17:20:59 CEST 2010


On 04/16/2010 04:47 PM, Ender EREL wrote:
> Clinton Stimpson wrote:
>>
>> Oh, forgot one more thing, try overloading QWidget::paintEngine() to
>> return NULL.
>
> Already done.
>
>> Then Qt will leave the QWidget alone and not do its own double
>> buffering on it (which is where the flicker comes from).
>
> Nope, flicker is still there :)

You'll need set the Qt::WA_PaintOnScreen widget attribute, *and* have 
paintEngine() return 0. If you don't set the attribute, 
QWidget::paintEngine() won't be called, since the paint engine for the 
backing store would be used instead.

--
Trond K.



More information about the Qt-interest-old mailing list