Reputation: 1182
Is there a way to get a list of all installed themes(e.g "motif" ,"gtk+" etc) in Qt via C++ API?
Upvotes: 1
Views: 1406
Reputation: 243945
Assuming you want to get the list of styles that Qt can use then you must use QStyleFactory::keys()
:
qDebug() << QStyleFactory::keys();
Output:
("bb10dark", "bb10bright", "cleanlooks", "gtk2", "cde", "motif", "plastique", "Windows", "Fusion")
Upvotes: 3