This could be related to this issue here: https://bugreports.qt-project.org/browse/QTBUG-33011 [bugreports.qt-project.org]
I create a dialog box, which displays properly with the window title (and minimize, maximize and close buttons).
After I hide it, change its location, then change its colors, set the window flags, and after I show it again with window title bar is gone.
This wasn’t a problem in 5.1.2, but appeared in 5.2.0. In 5.1.2 I set the window flags like this:
setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint);
and I had no problems until 5.2.0. I tried 5.2.1 (current stable branch), and the problem is still there. But if I set the window flags like this:
setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
then I get the title bar back.
So I have a workaround, but it seems like a regression to me.
I can come up with a (hopefully) small test case if needed. I’m running on Mac OS 10.8.5.
↧