Qt styling like Delphi VLC
-
I know that Qt has support for CSS and it has the QML, but I'm wondering, how can I style the gui like Delphi does with the VLC?
I mean, which one is faster? I tried to use the QML but I'm having a few problems with the window glitching, I don't know the reason, but maybe it's because of the OpenGL. I tried to change the configuration but it seems to be really slow.
I'm wondering, which one is faster? Qt styling using QPallete, using CSS or use QML with styling?I need the best performance x beauty possible.
-
Hi
For desktop widgets, StyleSheets offer fast and good styling.
http://www.informit.com/articles/article.aspx?p=1405556
Its can be change to great extend
http://thesmithfam.org/blog/2009/10/13/cool-qprogressbar-stylesheet/
its even possible to create a custom style.
http://doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html -
@mrjj Thank you, I think that I'm going to use stylesheets as you said.
Before I set as solved, let me ask you something, is it possible to do what we can do with stylesheets usingQPalette
? I mean, doesQPalette
have the same power of styling as stylesheets? Because QPallete is coding so I think that it might be faster than stylesheets as it will be parsed first in order to work, right? -
@yodusow-bardon said:
QPalette
Is as far as I know QPalette is only able to change colors of elements and some brushes.
Whereas StyleSheet can really change the look of the widget.Yeah stylesheet will be parsed once. but its fast.