Unsolved Why QStyleFactory::keys() is missing?
-
Hi; I tried this code:
qDebug() << QStyleFactory::keys();
Then I get this result:
("Windows", "Fusion")
. Whereas I knowPlastique, GTK+, Mac etc.
styles. WhyQStyleFactory::keys()
returns only("Windows", "Fusion")
? I'm using Qt 5.8, Thanks. -
Not all platform has all styles.
So my guess would be you do this on windows 7 or newer.
Also They removed some in Qt5
http://blog.qt.io/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/"The styles we are primarily planning on removing are Motif, CDE, Cleanlooks and Plastique. Windows (classic) "
-
Thanks, well Can I set Gtk+ style any way? Else I have to create custom style?
-
@Ibrahim
Well you can still build the old styles and use them as you like.
Its mentioned in the link. :)