Try this

Qt Code:
  1. button->setStyleSheet(
  2. "QPushButton {color:white; background:rgb(255,255,0); border-radius:10px; font:bold 16px; font-family:\"Arial\";}"
  3. "QPushButton:Pressed {padding-left: 5px; padding-top: 5px;}"
  4. );
To copy to clipboard, switch view to plain text mode