Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Wierd behavior of the title bar after exiting from full screen mode on MAC
rakeshthp last edited by
This is MAC specific issue. I am using Qt Creator 4.4 with Qt 5.6 in my project. I cannot create a minimal sample build as it is part of very big project. I am facing this particular issue which I guess many of them have faced it earlier. My application is running in background as an agent. I have a particular window which is a QWindow based. When this window is set to full-screen mode, the menu bar remains on top of this window. This issue is faced by many users. As a workaround for this issue, while entering in fullscreen mode, I change the flag of the window as
currentFlags = flags(); setFlags(Qt::Popup); show();
This piece of code removed the menubar and I could achieve full screen for that window. When it comes out from fullscreen mode, I reset the flags to the original one.
setFlags(Qt::Popup); show(); setFlags(currentFlags); show();
Second time setting popup is required to produce the titlebar. Strange but true. With this I get back my window in normal state. But when I click anywhere on the titlebar of the window, it triggers close event. It is very wiered. Only first time it triggers close event.
Did anybody face such issue earlier? Experts kindly give some pointers to proceed. All suggestions welcomed.
Thanks in advance
For that kind of behaviour, you have to provide a minimal compilable example as it's not possible to reproduce it with only your description as complete as it is. It might be something in your application that does this or you may have found an issue with Qt.
I'd recommend also testing with a more recent version of Qt. The current LTS is the 5.9 series while the current Qt version is 5.10.