How can I adjust the button width (back, next buttons) of a QWizard
. Is there any style sheet (qss) option I can use, or do I have to identify the buttons and set the widget width?
The stylesheet approach would be best.
You have to get the buttons using the button()
method of QWizard
and set a fixed width:
your_wizard->button(QWizard::BackButton)->setFixedWidth(the_width)
your_wizard->button(QWizard::NextButton)->setFixedWidth(the_width)