[Qt-interest] QGLWidget not playing nicely with others on the Mac

Bob Hood bhood2 at comcast.net
Thu Feb 25 22:37:45 CET 2010


I have both QTreeWidget and QGraphicsView widgets that I open in a
frameless window (Qt::FramelessWindowHint) in a GUI that contains one or
more QGLWidgets "viewports" active in the window.  I need these
Tree/GraphicsView widgets to appear over the top of the QGLWidgets while
they are visible, and they do so without issue under Windows and Linux.

However, the Mac isn't playing nicely.  The QGLWidgets remain at the top
of the child widget order, even though I'm using QWidget::setFocus(),
QWidget::raise() and setting the Qt::WindowStaysOnTopHint window flag on
the Tree/GraphicsView widgets.

Anybody know how I can get the Mac not to "think different" in this case?



More information about the Qt-interest-old mailing list