Whatever properties you changed in designer mode to create your own button, you can take those change on your old buttons, if the old buttons are created in ui form (in designer).
Agree with the comment, if all you alter on buttons are about appearance, you can apply style sheet to all your buttons on calculator throught:
QPushButton#buttonObjectName { border: none; border-radius: 0; background... }
or
QWidget#CalculatorObjectName QPushButton // this applies style to all button on calculator
{
}
- (Not suggested) subclass QPushButton, overwrite what every protected functions you want to alter, and promote QPushButtons in your designer to your subclass name. i see no necessary in such solution.