Mac Fullscreen Menubar + visible content
-
Hello,
I am trying to figure out a way to ensure that some content in my QMainWindow continues to be fully visible when the Mac Menubar drops down and overlaps the the main window when in fullscreen. I figure I will have to move the content downward when the menu is shown and then back upward when the menubar is hidden again. However, I haven't been able to find a signal or call that lets me know when menubar is overlaid or what the current available area is.
Full Screen Window before menubar shown, as you can see there is a green area above the event window
When the mouse is moved to the top of the screen the Mac menu bar is displayed and covers the green area and some of the event window
Ideally I would want to know if the menu bar is visible so that I might be able to shift the content downward to ensure visiblity.
-
@EricGressman You could override
QWidget::changeEvent
to check type for windowState changes of the window. In there you could then emit a custom signal for fullscreen display changes.
Or you query somewhere elsewindowState()
and check if you areQt::WindowFullScreen
or not.
Besides that I don‘t think there is a signal available for menu bar.