Hello everyone,
Greetings from Brazil! Does anybody know a quick and easy way to loop through all QLineEdit widgets on a form and clear them? Thanks for your time and help. I really appreciate it.
This is how I am currently doing it:
Greetings from Brazil! Does anybody know a quick and easy way to loop through all QLineEdit widgets on a form and clear them? Thanks for your time and help. I really appreciate it.
This is how I am currently doing it:
myform = {ui.lineEdit_name, ui.lineEdit_email, ui.lineEdit_pwd, ui.lineEdit_mktg, ... etc.} for fields in myform: fields.clear()Best regards.