1

I want to disable all back buttons from my application. I found a solution only for the first and last page, but I can't disable it for all the pages.

self.setOption(QWizard.NoBackButtonOnStartPage)
self.setOption(QWizard.NoBackButtonOnLastPage)
                    or
self.setOption(QWizard.DisabledBackButtonOnLastPage)

Does anyone have a solution?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Alin
  • 25
  • 2

1 Answers1

1

You can set a new button layout without BackButton using setButtonLayout():

self.setButtonLayout(
    [
        QWizard.Stretch,
        QWizard.NextButton,
        QWizard.FinishButton,
        QWizard.CancelButton,
    ]
)
eyllanesc
  • 235,170
  • 19
  • 170
  • 241