[Qt-interest] [MAC] SetWindowGroup problem

Castagne Nicolas nicolascastagne at yahoo.fr
Wed Feb 25 16:59:20 CET 2009


Hi folks,
especially mac-adicts :)

On the Mac, latest Qt 443, I am trying to obtain Qt::Tool windows that are 'not always on top' of documents' windows.

To that aim, I am changing the Tool windows' "window group" (that's an apple keyword).
The call is :
    SetWindowGroup(   HIViewGetWindow((HIViewRef) toolWindow->effectiveWinId()), 
                                     GetWindowGroupOfClass( kDocumentWindowClass)
                                );

Ok so far. The problem is :
==> when ever one of the tool windows is closed, the document windows are automatically raised to front (ie : over the unclosed tool windows). The stack order is loosed.

Included simple sample code, demonstrating the problem.

Does any one of you have an advice to avoid this behaviour ?

That would be.... would be... would be.... just great !

Thanks in avance,
Best-
Nicolas



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090225/1d11f70c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ToolWindowNotOnTop.tar
Type: application/x-tar
Size: 20480 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090225/1d11f70c/attachment.tar 


More information about the Qt-interest-old mailing list