Normally dialogs and messages from the KDEUI library appear on top
of the main window, but in my app I have a number of small, floating
windows and these can come in front of KMessageBox and KDialog,
obscuring the content and buttons. Also, I cannot close or hide the
small windows because their controls are disabled while KMessageBox
and KDialog run modally. All I can do is move them around.
The windows are constructed with no parent (to make them top-level
windows rather than widgets). I would also like to make them movable
to other desktops and/or monitors, where there is more space and they
could be made larger.
The window flags I am using in my constructor currently are:
setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowStaysOnTopHint);
The last one is advised by the Qt doco (see Qt::Tool window flag), for use
with Qt::Tool when your window has no parent (as in my case).
There must be something (maybe more than one thing) I am missing.
Any ideas?
All the best, Ian W.
P.S. Bug https://bugs.kde.org/show_bug.cgi?id=331594 relates to
this problem and I would like to fix it for the KDE 4.13 release.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<