I\'m using PySide(PyQt is fine as well) and I want to deselect everything inside a QTextEdit. Selecting everything is very easy and it\'s done by self.textedit.selectAll(),
It same too, isn't it?
QLineEdit.deselect (self)
Text all in your object.
Example;
.
myQLineEdit = QLineEdit()
.
.
myQLineEdit .selectAll()
.
.
myQLineEdit.deselect()
.
Reference : http://pyqt.sourceforge.net/Docs/PyQt4/qlineedit.html#deselect
Or, did your want to deselect all QLineEdit
, your just find Children is a QLineEdit
and deselect it all;
myQWidget= QWidget()
.
.
listsMyQLineEdit = myQWidget.findChildren(QLineEdit)
for myQLineEdit in listsMyQLineEdit:
myQLineEdit.deselect()
.
.
Regards,