Re: [PyQt] QLineEdit in QToolBar
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 listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QLineEdit in QToolBar
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 it works fine! with best regards, -vadym ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QLineEdit in QToolBar
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? thanks a lot. -vadym ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt