2

I wanted to copy QComboBox stylesheet but I couldn't find qss file for plastique style.

wondim
  • 697
  • 15
  • 29
  • 2
    Qt 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
  • 1
    Of 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
  • 1
    There 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
  • 1
    I 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 Answers1

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