Am Thursday 01 December 2011 06:18:02 schrieb Vadym Honcharuk: > Hello, > > I can't understand why QLineEdit can't send signal from QToolBar... > > trying via addWidget and addAction, for example last edition: > > self.searchDBLine = QtGui.QLineEdit(self) > self.searchDBLineAction = QtGui.QWidgetAction(self) > self.searchDBLineAction.setDefaultWidget(self.searchDBLine) > self.ui.toolBar.addAction(self.searchDBLineAction) > > and connected with: > * @QtCore.pyqtSignature > * usual signal connect > (self.connect(self.searchDBLine, QtCore.SIGNAL("textEdited()"), > self.searchBDLineChanged)) > > but without any success, could you please advice where is problem?
textEdited does not exist. Check the docs: textChanged ( const QString & ) You may want to use new style signals, this would have thrown a (hard to ignore) python exception then... self.searchDBLine.textChanged.connect(self.searchBDLineChanged) Pete _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt