For obtaining "system" palette use QApplication::palette. Also, take a look at QStyle, because this one is responsible for rendering widgets.