i think you cant enable/disable the standard buttons from qinputdialog.
Why you doesn't make a QWidget with QLineEdit field and implent your own qpushbutton? then you can check the length of the qlineedit and enable/disable the qpushbutton.
i think that is the better way to handle this.
Bookmarks