The publicly available source code for the bundled styles should provide a more than adequate basis for study of how they work/are implemented.

Qt style sheets are another mechanism you can use to tweak the appearance of your application without the level of effort required to write an entire custom style.