[Interest] Window with parent stays on top
Dale Marchand
dale.marchand at gmail.com
Wed Mar 4 00:28:16 CET 2015
Hi,
I have an application that we're porting from Qt 4.7 (don't ask) to Qt
5.4, and one of the behavior changes I'm dealing with is that all
separate windows with a parent are staying on top of the parent window.
For example, if I have these widgets:
QMainWindow *mainWindow = new QMainWindow();
QPlainTextEdit *logWindow = new QPlainTextEdit(mainWindow );
logWindow ->setWindowFlags(Qt::Window);
when I open the logWindow, it always stays on top (covers) the
mainWindow, even if the mainWindow has the focus. With Qt 4.7.5, the
windows were independent and either could be brought to the front when
the focus changed.
My window flags for mainWindow are:
0x1|0x1000|0x2000|0x4000|0x8000|0x8000000|0x80000000
My window flags for logWindow are:
0x1000|0x2000|0x4000|0x8000|0x8000000|0x80000000
I am running on RHEL6.6 with Qt 4.8.0, compiled locally.
Is this a bug or simply a behavior change that I can control somehow? I
didn't see anything directly related in the issue tracker.
Thanks.
Dale
More information about the Interest
mailing list