<p>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.</p>

<p>We think of using Qt 4.3 (or even newer) ...</p>

[{'answer_id': 67278, 'author': 'Kena', 'author_id': 8027, 'author_profile': 'https://Stackoverflow.com/users/8027', 'pm_score': 1, 'selected': False, 'text': "<p>We've done it in the past (in Qt 3), and it's extremely time-consuming. We had a lot of problems with flickering, redraws not working the way we expected, sluggish behavior, bugs in the Qt implementation. It a lot less straight-forward than it seems, and there's little support or user experience too. Unless you need something really particular (as we did), I'd say it's not worth the trouble.</p>\n\n<p>Other frameworks are supposed to make it easier (some Java-based?), but I don't have first hand experience.</p>\n"}, {'answer_id': 69074, 'author': 'Colin Jensen', 'author_id': 9884, 'author_profile': 'https://Stackoverflow.com/users/9884', 'pm_score': 3, 'selected': False, 'text': '<p>Check out the <a href="http://doc.qt.io/qt-4.8/stylesheet.html" rel="nofollow noreferrer">Stylesheets</a> 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.</p>\n\n<p>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.</p>\n'}, {'answer_id': 112365, 'author': 'Aurélien Gâteau', 'author_id': 20107, 'author_profile': 'https://Stackoverflow.com/users/20107', 'pm_score': 1, 'selected': False, 'text': '<p>You might want to look at existing styles. You can find quite a few of them on kde-look.org, in the <a href="http://kde-look.org/index.php?xcontentmode=9" rel="nofollow noreferrer">Styles / 4.0 section</a>.</p>\n'}, {'answer_id': 130940, 'author': 'Caleb Huitt - cjhuitt', 'author_id': 9876, 'author_profile': 'https://Stackoverflow.com/users/9876', 'pm_score': 3, 'selected': True, 'text': '<p>I have developed a "new" style that changed the appearance of much of an application.  It did take some time, and quite a bit of experimentation.  I also derived my style from the generic windows style, to allow it to handle some of the stuff I didn\'t want to mess with.  All told, I think it took me a week to get most of what I wanted, with practically no prior exposure to the styles.</p>\n\n<p>In order to actually develop one, I would get into the source for their <a href="http://doc.qt.digia.com/4.4/widgets-styles.html" rel="nofollow noreferrer">styles example</a>, which has a "wood" style.  I put my own style in place of the example style, and started changing things while using the example program to check how it looked.  Depending on how you are developing it, you might want to have a configuration file so you can easily change some of the values without recompiling.</p>\n'}, {'answer_id': 499919, 'author': 'David Boddie', 'author_id': 61047, 'author_profile': 'https://Stackoverflow.com/users/61047', 'pm_score': 0, 'selected': False, 'text': "<p>If you don't need to radically change the widget style, you might want to try using widget style sheets:</p>\n\n<pre><code>         http://doc.qt.digia.com/4.4/stylesheet.html\n</code></pre>\n"}]
['https://Stackoverflow.com/questions/66810', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2012356/']