[Qt-interest] qt mac create non-activating window

Sergey Uspensky pgf368 at gmail.com
Fri Jan 30 12:20:59 CET 2009


Hello guys!

Is there any way to create a Qt window on Mac OS X (Qt is 4.4) which will
float above others and not accept keyboard focus when user click on it?

I can make a kUtilityClass in Carbon API which suits this well,

but when i change Qt made window class (by default it is kDocumentWindow) to
that type - the window stays on top but still accepts user focus

Maybe that can be done completely in Qt? I've tried to set up Qt hints in
window constructor like this but this didnt help -

     setWindowFlags( Qt::Tool | Qt::FramelessWindowHint);

     setFocusPolicy(Qt::NoFocus);

or

      setWindowFlags( Qt::WindowStaysOnTopHint);

       setFocusPolicy(Qt::NoFocus);

The window still gets activated.

Please help....

TIA,

Serg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090130/c097b15c/attachment.html 


More information about the Qt-interest-old mailing list