Qt’s style system FTW (Adding Theme Support to a Qt Application)
A few years ago, I was asked to add a “theme” to a Qt project of mine. I wasn’t fully aware of the power of Qt’s style system, so I did it the hard way. I created a configuration file that contained the theme-able attributes of just about everything I could think of. And when the application started, I parsed it and applied the colors, fonts, etc. After a short bit, I noticed things I had overlooked and added them. It wasn’t amazingly hard, but it sure could have been easier. Today I’d like to discuss the easy way :-).
Read More...