Search code examples
qtqpushbutton

QT widgets, rounded selected corner only


I can set a QT QPushButton to rounded button by setting "border-radius" in style sheet, however i just want to set only the right edge (top and bottom right) corner of the button to rounded. How to do it?


Solution

  • You can set border-top-right-radius and border-bottom-right-radius in style sheet.