[Qt-interest] native painting in a QWidget on Windows

Thiago Macieira thiago at kde.org
Thu Dec 30 14:06:20 CET 2010


On Wednesday, 29 de December de 2010 13:43:24 John Weeks wrote:
> Thanks, Alex!
> 
> On Dec 29, 2010, at 1:13 PM, Malyushytsky, Alex wrote:
> > You could try to play with widget attributes.
> > Start with setAttribute(Qt::WA_NativeWindow);
> 
> Yes, I tried that. It seems that is equivalent to calling QWidget::winId().
> 
> Even in a window with Qt::WA_NativeWindow set, QPainter is still using the
> raster engine, which means that all QPainter drawing is done to a bitmap
> that is blted to the widget only after all drawing is done.

There's no "native" on Windows. So it's always raster.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101230/eb4fb615/attachment.bin 


More information about the Qt-interest-old mailing list