문제

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 widge, But i don't know its signal.

My question is : What's its signal when you leave a widget such as LineEdit?

Yours, Mohsen

도움이 되었습니까?

해결책

According to the documentation QlineEdit will emit void QLineEdit::editingFinished () [signal] when the line edit widget loses focus.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top