Since the QString method isEmpty() is gone in PyQt5, what would be the equivalent of:
Code:
if QLineEdit.text().isEmpty();
That will work in 4 and 5?
Is it as simple as:
Code:
if not unicode(QLineEdit.text()):
?
Or even
Code:
if not QLineEdit.text():
or
Code:
if not len(QLineEdit.text()):