Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89039

[macOS] QMacToolBar doesn't support new styles in macOS Big Sur

    XMLWordPrintable

Details

    • macOS

    Description

      QMacToolBar buttons are misplaced and look broken in a Qt app

      Strangely enough: when using XCode 11.3, it's fine. See screenshots

      Update: the reason is new NSWindowToolbarStyle
      By default it uses NSWindowToolbarStyleAutomatic whilst most users expect traditional approach.
      Just wrote a quick workaround class for it to avoid modifying Qt. Do recommend though adding this enum/get/set to the QMacToolbar class.

      Attachments

        1. BigSur_XCode11.png
          BigSur_XCode11.png
          187 kB
        2. BigSur_XCode12_broken.png
          BigSur_XCode12_broken.png
          206 kB
        3. Catalina.png
          Catalina.png
          211 kB
        4. testproject.zip
          5 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vestbo Tor Arne Vestbø
              crystalidea Steven (crystalidea)
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes