Qt Installer Framework: How to disable/enable Next button in script
Unsolved
Installation and Deployment
-
Hello all.
I'm trying to define a condition on the path allowed for my application to be installed to,. I'm detecting thetextChanged
signal fromTargetDirectoryLineEdit 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
widget.setComplete(false);
but nothing works (last isn't exposed to JS side).Any ideas?
-
So the
widget
is the button? You should find the button and then callsetEnabled(false)
orbutton.enabled = false
.That's my guess, I can't test now :/