Important: Please read the Qt Code of Conduct -

How to check if QLineEdit() is empty in PyQt5

  • #PyQt5 #Python
    i have a QMainWindow that hold 7 QLineEdit() and a QPushButton.
    i'm trying to set a FOR loop for the QPushButton(OnClick_Proceedbtn) that checks if those QLineEdit() are empty or not.
    and if yes, change the empty QLineEdit() to red(background).

    Thank you in Advance.

Log in to reply