[Qt-interest] Qt, DirectX and MultiThreading

Trond Kjernåsen trond.kjernasen at nokia.com
Tue Apr 20 11:06:20 CEST 2010


On 04/20/2010 09:41 AM, Ender EREL wrote:
> Trond Kjernåsen wrote:
>>
>> 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.
>
> I know, that is what i am doing. As i said, i tried a lot of
> combinations of windowflags & attributes, none of which did work as i
> expected.

Then it's not Qt that is causing the flickering - there is no way Qt can 
touch pixels in that widget if the above flag is set and paintEngine() 
for that widget returns 0.

--
Trond K.



More information about the Qt-interest-old mailing list