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. Wierd behavior of the title bar after exiting from full screen mode on MAC

Wierd behavior of the title bar after exiting from full screen mode on MAC

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 738 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    rakeshthp
    wrote on last edited by
    #1

    Hi folks,

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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