Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Return back from fullscreen on Mac

    General and Desktop
    mac os x fullscreen
    2
    3
    1200
    Loading More Posts
    • 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.
    • Unick
      Unick last edited by Unick

      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 Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        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

        Unick 1 Reply Last reply Reply Quote 0
        • Unick
          Unick @jsulm last edited by

          @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 Reply Quote 0
          • First post
            Last post