[PyKDE] QComboBox signals
Tom Brown
brown at esteem.com
Wed May 3 02:07:31 BST 2006
I have connected just about all the signals of the QComboBox to a method in my
main window. However, none of these methods are getting called. The combo box
acts normally otherwise. Here is how I connect a signal:
self.connect(self.ui.modelCB, SIGNAL('editTextChanged(const QString & text)'),
self.modelChanged)
Here is the modelChanged() method:
def modelChanged(self, text):
print 'model =', text
I can connect the clicked() signal of a QPushButton just fine doing something
similar. What am I doing wrong?
Thanks,
Tom
More information about the PyQt
mailing list