Unsolved Why should we use style sheet In QT?
-
Why QT supports style sheet?
When should use it?
How to use it correctly? -
@Skipper said in Why should we use style sheet In QT?:
Why QT supports style sheet?
Because it does.
When should use it?
When you need it
How to use it correctly?
By reading the documentation: http://doc.qt.io/qt-5/stylesheet-reference.html
-
Hi
Why QT supports style sheet?
To allow visual tweaks for special designs.
When should use it?
When you need minor changes to the appearance of the App.
If you need a full blown make over of the look, creating a custom QStyle is more efficient.
http://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.htmlHow to use it correctly?
I can not recommend enough to only use a style sheet on the QApplication object.
That way all widgets in application are affected. If you apply a style sheet to
individual widgets in the project it tends to become a mess to maintain.
Also, the use of good sectors in the stylesheet is important or else you are likely to
experience side effects from the cascading feature.