Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom style with Qt

Tags:

widget

qt

Has anybody experience in building a custom style in Qt? What I have in my mind is a complete new style that affects all kind of widgets. I have seen some examples in the web for a custom combo box. But I have no idea how much time and code it takes to build a "complete" new custom style ... maybe someone can give me a hint.

We think of using Qt 4.3 (or even newer) ...

like image 533
Thomas Koschel Avatar asked Dec 18 '22 10:12

Thomas Koschel


1 Answers

Check out the Stylesheets facility in Qt 4. While it's still a hassle, it's way easier than doing a full-on custom style. You can just adjust one visual facet at a time and try it out.

It pays attention to inheritance. So if you style the font in QWidget, then every visual widget will also use that font. And so on.

like image 151
Colin Jensen Avatar answered Jan 18 '23 18:01

Colin Jensen