I wanted to copy QComboBox stylesheet but I couldn't find qss file for plastique style.
Asked
Active
Viewed 1,326 times
2
-
2Qt widget styles are plugin-based, so there is no qss file to find. User-defined stylesheets are applied on top of the styling that is done by the style plugin. – ekhumoro Jan 14 '17 at 22:14
-
Is there any any documentation or source code with full plastique style somewhere? – wondim Jan 14 '17 at 22:31
-
1Of course there's source code, but I doubt whether you'll find any of it very useful. Perhaps you should edit your question and explain what you are trying to achieve. – ekhumoro Jan 14 '17 at 22:55
-
I wanted to use plastique style-sheet on a widget whose default stylesheet is overridden. – wondim Jan 15 '17 at 00:08
-
1There are no default stylesheets for any of the widgets in Qt. All the styling is done programmatically by the style plugins. – ekhumoro Jan 15 '17 at 00:27
-
1I think what he is looking to do is to have a qss stylesheet for a few of the plastique elements. For example... it would be nice to have the same rounded buttons and rounded tab widgets from the plastique style, but in qss style format, so he can override his current style. He probably doesn't need the entire plastique style. – panofish Sep 14 '17 at 15:23
-
This is exactly what I wanted. – wondim Sep 14 '17 at 18:23
1 Answers
2
In Qt 5, the QPlastiqueStyle and its friends have been removed. However they have been put in their own module so you can clone it from the qtstyleplugins repository to read its code.
Nothing forbids you from using them though if you need.

SGaist
- 906
- 8
- 33
- 109
-
Thank you for the answer. I cloned the repository but I couldn't get any style code. On which file could I get it? – wondim Jan 15 '17 at 00:09
-
1
-
-
Right from the repository: http://code.qt.io/cgit/qt/qtstyleplugins.git/tree/src/plugins/styles/plastique/qplastiquestyle.cpp – SGaist Feb 07 '17 at 12:58
-
-
That's the source of the QPlastiqueStyle. If that's not what you want then what are you looking for exactly ? – SGaist Mar 25 '17 at 12:24
-
-
1There's no stylesheet to find in this case. QPlastiqueStyle is a full style. – SGaist Sep 14 '17 at 20:02