Examples of all built-in Styles
-
In my application startup I have:
// // Set the Qt Application Style // app->setStyle(QStyleFactory::create("Fusion"));
Which works fine.
I'd like to see a web page with all the Qt built-in Styles that shows what they look like but can't seem to find one (maybe my Google foo has deserted me).
Please could someone point me to the relevant resource.
Thanks David
David -
The QStyle doc shows a QComboBox in different styles.
And if you use ui files, you can preview it in Qt Creator/Designer for all available built-in styles of the current platform. -
-
I am aware of that, but AFAIK that isn't a complete set of all the Styles. For example "Fusion" isn't in the list.
PS Why are there only 3 styles listed by QStyleFactory::keys() (windowsvista, Windows, and Fusion) ?? I expected to see many more ...
D.
-
HI
Most of the older styles were removed.
https://www.qt.io/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion -
Ah! OK the old styles were removed and there's only three shipped with Windows. AFAICT the style plugins only offer the OLD (removed) styles - apart from Fusion there's no Qt specific themes - is that right? Or did I miss some?
PS Is there a "Dark Theme" version of Fusion or similar?
David
-
Ah! OK the old styles were removed and there's only three shipped with Windows. AFAICT the style plugins only offer the OLD (removed) styles - apart from Fusion there's no Qt specific themes - is that right? Or did I miss some?
PS Is there a "Dark Theme" version of Fusion or similar?
David
@Perdrix said in Examples of all built-in Styles:
PS Is there a "Dark Theme" version of Fusion or similar?
Nope.
However, you can make a basic one with palette
https://stackoverflow.com/questions/15035767/is-the-qt-5-dark-fusion-theme-available-for-windows -