PDA

View Full Version : QT Application in Plastique style



msmihai
6th January 2009, 16:13
I want to create an application that looks "Plastique" ( i think it's de visual style on mac or something like that ) . But i want it to look Plastique even on windows or linux .
In QT Designer i discovered an option "Form Preview In" , where i can choose from different styles for the widgets . How can I do the same thing with my application ?

spirit
6th January 2009, 16:50
you can set style using


...
QApplication::setStyle(new QPlastiqueStyle);
...

rexi
6th January 2009, 17:44
By the way, Plastique is the "native" Qt style on Linux, as long as the application doesn't adopt the style of the desktop it is running in.