[PyQt] comboBox inside a statusBar

kib2 kib2 at free.fr
Wed Nov 7 09:57:28 GMT 2007


Hi,

I've just tried to add a comboBox inside my statusBar of my Main 
application like this :

     def manageStatusBar(self):
             self.combo = QtGui.QComboBox(self)
             self.langList = QtCore.QStringList(["a","b","c","d","e"])
             self.combo.addItems(self.langList)
             self.statusBar().addPermanentWidget(self.combo)
             self.statusBar().showMessage(self.tr("Ready..."))
             self.connect(self.combo, 
QtCore.SIGNAL("editTextChanged(QString)"),self.langChanged)

     def langChanged(self, someText):
         print str(someText)

But I receive the following message :
QObject::connect: Connecting from COMPAT signal 
(QComboBox::textChanged(QString))

What's wrong here ?
Thanks.



More information about the PyQt mailing list