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

Clinton Stimpson clinton at elemtech.com
Thu Feb 25 22:56:35 CET 2010


On Thursday 25 February 2010 02:37:45 pm Bob Hood wrote:
> 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?

Sounds like a bug.  It may not be considering those windows when setting 
AGL_CLIP_REGION.
As a workaround could make these widgets with a NULL parent.

Clint



More information about the Qt-interest-old mailing list