Pedro Monteiro
Pedro Monteiro

Reputation: 357

Connect QPushButton of QWizardPage with NextButton of QWizard

how could I connect a QPushButton of a QWizardPage with the Next Button of Qwizard?

What I want is: when I click in the QPushButton created in the QWizardPage, the page goes to the next screen.

Upvotes: 2

Views: 135

Answers (1)

galinette
galinette

Reputation: 9292

If pageButton is your page button, just:

pageButton.clicked.connect(wizard.button(QWizard.NextButton).click)

Upvotes: 2

Related Questions