The easiest way would be to do the same effect in designer and edit the properties until you get your desired effect and then check the generated output. The designer properties should also give you a clue as to what needs changing.

Or you could just read the documentation of QWidget which QPushButton inherits.