Matches all QPushButton instances whose object name is okButton. Matches instances of QPushButton, but not of its subclasses. One way to achieve this is to unset the style sheet and set it again. Warning: If the value of the Qt property changes after the style sheet has been set, it might be necessary to force a style sheet recomputation.