[Solved]How to view Qt applications in different styles?
-
wrote on 18 Jul 2013, 08:02 last edited by
Hi,
I heard Qt applications can easily preview in different styles.
I asked my colleague and he says I have to use -style motif as arguments in run settings. It change the appearance of my app, but i need to try out all the styles.
So,
-
What are the commands should I use ?
-
Are there any way to change styles? I found someone says use @QApplication::setStyle(new QPlastiqueStyle)@
-
what is the best way?
Thanks in advance..
-
-
wrote on 20 Jul 2013, 22:55 last edited by
Hello ~Hareen Laks
Both ways are okay, you can set style via command line argument, like ("-style <stylename>") or via runtime command (qApp->setStyle(QStyle*)). For trying all styles I would recommend you to use the second one, but you can use the first one also
-
wrote on 24 Jul 2013, 05:05 last edited by
Thank you tucnak..
I enjoyed lot of styles except some are not possible with my OS. :)
1/3