Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mac Fullscreen Menubar + visible content
QtWS25 Last Chance

Mac Fullscreen Menubar + visible content

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 192 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EricGressman
    wrote on last edited by
    #1

    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
    27a294d3-9575-4f1c-a5f7-b05b9f971c10-image.png

    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
    42890448-604d-4121-a5c0-dc813cb17904-image.png

    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.
    de316f74-2ecb-445c-b704-81f399f7723e-image.png

    D 1 Reply Last reply
    0
    • E EricGressman

      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
      27a294d3-9575-4f1c-a5f7-b05b9f971c10-image.png

      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
      42890448-604d-4121-a5c0-dc813cb17904-image.png

      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.
      de316f74-2ecb-445c-b704-81f399f7723e-image.png

      D Offline
      D Offline
      DerReisende
      wrote on last edited by DerReisende
      #2

      @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 else windowState() and check if you are Qt::WindowFullScreen or not.
      Besides that I don‘t think there is a signal available for menu bar.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved