[Interest] WA_NativeWindow breaking other widgets

Jared McIntyre Jared.McIntyre at medsimulation.com
Thu Aug 7 22:15:46 CEST 2014

I have a complex window where setting the Qt::WA_NativeWindow attribute on a child widget causes  the other widgets to cease drawing updates. Previously, I thought this was an issue related to my use of OpenGL, but occurs when there are no QGLWidgets as well. It turns out Qt 5.3.1 is managing my widgets significantly different than 5.1 is. In 5.1, when I set the Qt::WA_NativeWindow on the widget, three additional hwnds are generated -- one for my widget, one containing all the other widgets, and a parent hwnd to contain these two children. In 5.3.1, all the widgets in my window suddenly have hwnds, as do their spacers, etc. These additional hwnds are the widgets that cease to draw updates. Unfortunately, I have not been able to recreate a simpler reproduction case. Where should I be debugging to try to understand this better?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140807/d5d6d48b/attachment.html>

More information about the Interest mailing list