Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. showMinimized() not working on mac os.. ...
Qt 6.12 LTS is out! See what's new in the release blog

showMinimized() not working on mac os.. ...

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 1.2k 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.
  • I Offline
    I Offline
    integer
    wrote on last edited by
    #1

    showMinimized() working fine for windows and Linux but not working on mac os.. ...

    D 1 Reply Last reply
    0
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Can you post more of your code?

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0
      • I integer

        showMinimized() working fine for windows and Linux but not working on mac os.. ...

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

        @integer showMinimized() is working as expected here on macOS 12.5.1 Apple M1 with Qt 6.4b4

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jameswalter
          wrote on last edited by
          #4
          1. Create a new Qt GUI application;
          2. Set window flags of main window like following:
            this->setWindowFlags(Qt::FramelessWindowHint);
          3. Invoke showMinimized() method by any means, the main window doesn't minimize itself after that.

          Regards,
          james

          1 Reply Last reply
          0
          • Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on last edited by
            #5

            Qt::FramelessWindowHint translates into NSWindowStyleMaskBorderlesson macOS.
            Borderless windows not minimizing programmatically, is known behavior on macOS. It's arguable if that behavior is a bug or a feature: A frameless window has no handles for the user to show/hide/maximize it. So if minimized programmatically, the user cannot interact with it any more. Popup windows are typical frameless/borderless use cases.
            Having said that, showMinimized()works on macOS, unless Qt::FramelessWindowHint is set and/or the window is a popup.

            Software Engineer
            The Qt Company, Oslo

            1 Reply Last reply
            1

            • Login

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