How to get the whole Qt StyleSheet for QMacStyle

Is it possible to get a text file of the entire Qt5 StyleSheet for QMacStyle (or its equivalent QProxyStyle, which was apparently used in Qt5)?

I hope to get a list of all the properties: pairs of values ​​("background-color", "border-radius", "margin-top", "padding", etc.), as well as their default settings, which are used for each of common widgets (QPushButton, QTabBar, etc.).

Qt5 on Mac OSX looks great because of all widget widgets (see, for example, Macintosh widget gallery ). I would like to make some surgical replacements for a number of style properties in my application, but otherwise keep my own look. (An alternative approach to the problem, or at least with the same end goal, is presented in my related question How to override only one property: value pair in Qt StyleSheet .)

If I knew the whole equivalent of QT StyleSheet for QTabBar or QPushButton, I could restore my own look to my own calls widget->setStyleSheet()by adding to my small necessary settings.

I searched the entire Qt5.4.0 directory, hoping to find a file *.qssrepresenting the OSX style, but to no avail (I found hopefully named examples/widgets/widgets/stylesheet/qss/default.qss, however, everything that it says inside //* empty stylesheet *//). I have exhausted my ideas under control grepin the full Qt5 source directory, including qt-everywhere-enterprise-src-5.4.0/qtbase/src/widgets/styles/one that can really contain details, but not in a very digestible form).

Thanks -

+2
source share
1 answer

QMacStyleis a subclass QStylethat Apple uses HIThemeto draw (look for files qmacstyle_mac*to see the implementation), so there is no stylesheet to get.

+1
source

All Articles