Qt – Custom style with 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) …

Best Solution

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.

Related Question