Horst Walter
Horst Walter

Reputation: 14081

Set button width for QWizard pages

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.

Upvotes: 0

Views: 115

Answers (1)

eyllanesc
eyllanesc

Reputation: 243973

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)

Upvotes: 1

Related Questions