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. QPushButton has square edges on some macOS 26 Macs
Qt 6.11 is out! See what's new in the release blog

QPushButton has square edges on some macOS 26 Macs

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 433 Views 2 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote last edited by
    #1

    A couple of my customers are reporting that QPushButtons in QDialogs look like this on macOS 26:

    87dd6d0f-2bcc-4715-a1e5-b490aaf340b5-image.png
    (low contrast, square buttons)

    For myself and the majority of my customers on macOS 26 they look like this, as expected:

    cb1b5ba3-f371-4acd-9bb1-5584a64605af-image.png

    I haven't been able to work out why this is.

    I have tried changing various Display and Accessibility settings on my Mac. But I can't reproduce the problem.

    I tried setting UIDesignRequiresCompatibility key in Info.plist to true, but that made no difference ( https://www.qt.io/blog/qt-on-macos-26-tahoe ).

    I am building with Qt 5.15.18 (I know) using XCode 14.2.

    Any ideas?

    1 Reply Last reply
    1
    • AndyBriceA Offline
      AndyBriceA Offline
      AndyBrice
      wrote last edited by
      #2

      I found this:

      https://qt-project.atlassian.net/browse/QTBUG-138699

      But it didn't give me any clue as to why I get square buttons on only some Macs.

      KH-219DesignK 1 Reply Last reply
      1
      • Joe von HabsburgJ Offline
        Joe von HabsburgJ Offline
        Joe von Habsburg
        wrote last edited by
        #3

        Did you try stylesheet or custom dialog widget ?

        AndyBriceA 1 Reply Last reply
        0
        • Joe von HabsburgJ Joe von Habsburg

          Did you try stylesheet or custom dialog widget ?

          AndyBriceA Offline
          AndyBriceA Offline
          AndyBrice
          wrote last edited by
          #4

          @Joe-von-Habsburg We aren't using a stylesheet or customizing the QDialog or QPushButtons.

          1 Reply Last reply
          0
          • Joe von HabsburgJ Offline
            Joe von HabsburgJ Offline
            Joe von Habsburg
            wrote last edited by
            #5

            Could you try and check with on 2 different pc ?

            AndyBriceA 1 Reply Last reply
            0
            • Joe von HabsburgJ Joe von Habsburg

              Could you try and check with on 2 different pc ?

              AndyBriceA Offline
              AndyBriceA Offline
              AndyBrice
              wrote last edited by
              #6

              @Joe-von-Habsburg 2 customers are reporting it. Most of our customers aren't seeing it and it doesn't happen on either of our test Macs.

              1 Reply Last reply
              0
              • hskoglundH Offline
                hskoglundH Offline
                hskoglund
                wrote last edited by
                #7

                Hi, just a guess, but maybe those 2 customers are running some kind of screen-reader (like if you have some visual impairment).

                AndyBriceA 1 Reply Last reply
                2
                • AndyBriceA AndyBrice

                  I found this:

                  https://qt-project.atlassian.net/browse/QTBUG-138699

                  But it didn't give me any clue as to why I get square buttons on only some Macs.

                  KH-219DesignK Offline
                  KH-219DesignK Offline
                  KH-219Design
                  wrote last edited by
                  #8

                  @AndyBrice said in QPushButton has square edges on some macOS 26 Macs:

                  I found this:

                  https://qt-project.atlassian.net/browse/QTBUG-138699

                  But it didn't give me any clue as to why I get square buttons on only some Macs.

                  I took one of the git hashes mentioned (by "qt.gerrit.bot") on that Jira ticket, and viewed the code: https://codereview.qt-project.org/c/qt/qtbase/+/663695/11/src/plugins/styles/mac/qmacstyle_mac.mm

                  The patched code makes use of:

                          if (!qt_apple_runningWithLiquidGlass()) {
                  

                  So maybe that is a clue?

                  (Disclaimer: the last time I did Apple-related Qt work was a couple years ago, and I was targeting iOS, not desktop. I'm not coming from a position of Qt-Apple expertise.)

                  For more clues, one could look through git commits under qtbase/src/plugins/styles/mac/ in general. Though I'm not sure whether it would be more interesting to use the 5.15 git branch (since Andy is building against 5.15) or more interesting to see commits on the latest branch (such as the one above courtesy of "qt.gerrit.bot").

                  www.219design.com
                  Software | Electrical | Mechanical | Product Design

                  1 Reply Last reply
                  3
                  • hskoglundH hskoglund

                    Hi, just a guess, but maybe those 2 customers are running some kind of screen-reader (like if you have some visual impairment).

                    AndyBriceA Offline
                    AndyBriceA Offline
                    AndyBrice
                    wrote last edited by
                    #9

                    @hskoglund said in QPushButton has square edges on some macOS 26 Macs:

                    maybe those 2 customers are running some kind of screen-reader (like if you have some visual impairment).

                    I asked one of them. He said he wasn't using a screen reader.

                    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