Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set application theme in Qt [duplicate]

Tags:

c++

qt

Is there a way I can set the application theme from inside my application's own code?

For example, a function like that:

setApplicationTheme("Plastique");
like image 934
sashoalm Avatar asked Jan 12 '14 19:01

sashoalm


1 Answers

You can use this function:

QStyle * QApplication::setStyle ( const QString & style );

Take a look at the Qt docs:

Qt 5

Qt 4.8

like image 128
Vinícius Gobbo A. de Oliveira Avatar answered Sep 21 '22 15:09

Vinícius Gobbo A. de Oliveira