Le 13/09/2013 02:33, Mohsen Pahlevanzadeh a écrit :
Dear all,
QtCore.QObject.connect(self.checkBox,
QtCore.SIGNAL(_fromUtf8("clicked(bool)")), lambda:
self.interfaceCodesConstructor.setFilterList(self,"name",self.lineEdit.text()))
I code pyqt, I have the following code:
///////////////////////
QtCore.QObject.connect(self.checkBox,
QtCore.SIGNAL(_fromUtf8("clicked(bool)")), lambda:
self.interfaceCodesConstructor.setFilterList(self,"name",self.lineEdit.text()))
//////////////////////////
Abobe code causes When i click on checkbox, my function : setFilterList
will be run.
i need to run above function:
"setFilterList(self,"name",self.lineEdit.text())" When i leave a
LineEdit widget, But i don't know its signal.
My question is : What's its signal when you leave a widget such as
LineEdit?
Yours,
Mohsen
The signal editingFinished() is made for that.
http://pyqt.sourceforge.net/Docs/PyQt4/qlineedit.html#editingFinished
--
Vincent V.V.
Oqapy <https://launchpad.net/oqapy> . Qarte
<https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager>
--
https://mail.python.org/mailman/listinfo/python-list