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

John Weeks john at wavemetrics.com
Wed Dec 29 22:43:24 CET 2010


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.

> I've never done mixed painting, but one of my application
> allows another application to do native painting in window it owns.


That's a different case if you start with a  non-Qt window.

Regards,
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax   (503) 620-6754
email   support at WaveMetrics.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101229/265cb2ef/attachment.html 


More information about the Qt-interest-old mailing list