QPushButton has square edges on some macOS 26 Macs
-
A couple of my customers are reporting that QPushButtons in QDialogs look like this on macOS 26:

(low contrast, square buttons)For myself and the majority of my customers on macOS 26 they look like this, as expected:

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?
-
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.
-
Did you try stylesheet or custom dialog widget ?
-
Did you try stylesheet or custom dialog widget ?
@Joe-von-Habsburg We aren't using a stylesheet or customizing the QDialog or QPushButtons.
-
Could you try and check with on 2 different pc ?
-
Could you try and check with on 2 different pc ?
@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.
-
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.
@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 the5.15git 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"). -
Hi, just a guess, but maybe those 2 customers are running some kind of screen-reader (like if you have some visual impairment).
@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.