PySide: How to get Back button in QWizard?
-
The trivialwizard.py example app shows me a Next button and a Cancel button. I cannot figure out how modify the code to display the Back button. Is this a bug with PySide or my brain? Can somebody tell me how to do it? Thanks.
-
OK, I figured it out after looking at the underlying Qt code.
Apparently, the Back Button is never visible if you are using the Aero Style, which on my PC is apparently the default. No idea why this is the case . . . seems like a bug in Qt to me.
Anyways, to be clear, if I add the following in main, I now get the Back button:
@wizard.setWizardStyle(QtGui.QWizard.WizardStyle.ModernStyle)@