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

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

    XMLWordPrintable

    Details

      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
          187 kB
          Steven (crystalidea)
        2. BigSur_XCode12_broken.png
          206 kB
          Steven (crystalidea)
        3. Catalina.png
          211 kB
          Steven (crystalidea)
        4. testproject.zip
          5 kB
          Steven (crystalidea)

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              crystalidea Steven (crystalidea)
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes