How to enable button while giving input on lineEdit in UI files.
-
Hi,
You mean you would like to enable the button once the QLineEdit is not empty anymore ?
-
@yashi95
See void QLineEdit::textEdited(const QString &text), or possibly void QLineEdit::textChanged(const QString &text). Enable/disable your button inside a slot on that according as the text is or is not empty.