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. Return back from fullscreen on Mac
Forum Updated to NodeBB v4.3 + New Features

Return back from fullscreen on Mac

Scheduled Pinned Locked Moved Unsolved General and Desktop
mac os xfullscreen
3 Posts 2 Posters 1.6k 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.
  • UnickU Offline
    UnickU Offline
    Unick
    wrote on last edited by Unick
    #1

    Hello.

    Today i faced with one problem with Qt 5.5 on Mac. If i calls showNormal right after showFullScreen, it does not work correct. I stay on separate desktop and it is gray. Looks like widget is stay full screen. Here is my test code:

    int main(int argv, char **args)
    {
    QApplication app(argv, args);
    QWidget window;
    window.show();
    window.showFullScreen();
    window.showNormal();
    
    return app.exec();
    }
    

    Is it bug in Qt or i do something wrong?

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

      Why should the widget be closed?
      You do not close it.
      After

      window.showNormal();
      

      is it still in full-screen mode or just maximized?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      UnickU 1 Reply Last reply
      0
      • jsulmJ jsulm

        Why should the widget be closed?
        You do not close it.
        After

        window.showNormal();
        

        is it still in full-screen mode or just maximized?

        UnickU Offline
        UnickU Offline
        Unick
        wrote on last edited by
        #3

        @jsulm Sorry, i was i little wrong. Widget is full screen after showNormal(). I have the same problem if i call hide instead of showNormal.

        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