Qt Installer Framework: How to disable/enable Next button in script
SafaAlfulaij last edited by SafaAlfulaij
I'm trying to define a condition on the path allowed for my application to be installed to,. I'm detecting the
TargetDirectoryLineEdit QLineEdit, and doing my condition there.
The issue is, whatever I use, I can't disable the "Next" button. Tried:
var widget = gui.pageById(QInstaller.TargetDirectory);)
widget.complete = false;and
buttons.NextButton.disabled = false;and
but nothing works (last isn't exposed to JS side).
widgetis the button? You should find the button and then call
button.enabled = false.
That's my guess, I can't test now :/