PDA

View Full Version : Create themes for application.



atomic
4th November 2014, 18:12
Hi all,
i have question about create themes for application.
I would like have options in menu which allow user to change theme between white ( like office 2013 white )
and for example visual studio 2013 ( blue ) as you can see on the images.

10725
10726

how do it in qt?
I should change pallete in QtDesigner? I try but I can't change background color some widgets like QMenuBar or QToolButton.
Or I should use Qt Style Sheets? And how to switch between them?

wysota
4th November 2014, 19:18
See QStyle and friends.

atomic
5th November 2014, 08:17
I used QStyleFactory::keys() and without windows-style i have only Fusion.

It looks ok but not perfectly and I will need adjust it. Can I mix Fusion style with QPalette and/or QSS?
Maybe you know anything about ready style which I can download and use in my app?
I think that create own style require a lot of work but and my time now is limited...

Thanks,

wysota
5th November 2014, 08:25
I used QStyleFactory::keys() and without windows-style i have only Fusion.

It looks ok but not perfectly and I will need adjust it. Can I mix Fusion style with QPalette and/or QSS?
Maybe you know anything about ready style which I can download and use in my app?
I think that create own style require a lot of work but and my time now is limited...

Thanks,

Google for "Qt custom style", maybe you will find something. I think there is a number of styles in Qt you can enable during compilation as well.

Brandybuck
6th November 2014, 17:35
Look at the "Styles Example" that comes with Qt. It does just this.