How to Hide the Back Button in Qt installer framework?
Please see attached image.
How to Hide the Back Button in Qt installer framework?
Please see attached image.
See my answer to Qt installer framework hide or disable buttons quoted below:
For the wizard BackButton specifically, it automatically disables itself if there are no pages before the current page a la the Introduction page.
From QtScript this can be accomplished by removing any dynamic pages before the current page with
installer.removeWizardPage
and disabling all default pages before the current page withinstaller.setDefaultPageVisible(QInstaller.Introduction, false)
.
There is void QWizard::setButton ( WizardButton which, QAbstractButton * button )
what means you schould be able to set a button which behaves like you need it. Derive a Class from QAbstractButton. Reimplement the paintEvent()
to paint nothing and reimplement the mouseEvents
to do nothing. That should do the (dirty) trick. Even if the wizard sets it to be visible, it won't draw itself and can't digest and mouse actions. Just tested it ... should work for you.