[PyKDE] Missing signal?

Eron Lloyd eronlloyd at gmail.com
Mon Apr 4 23:00:32 BST 2005


Hi all,

I'm trying to connect to the overloaded method of QComboBox.activated(const 
QString & string), but Qt complains that there's no such signal. Here is some 
sample code:

from qt import *

app = QApplication([])
vBox = QVBox()
label = QLabel("Current Item", vBox)
comboBox = QComboBox(vBox)
comboBox.insertItem("One")
comboBox.insertItem("Two")
comboBox.insertItem("Three")
app.setMainWidget(vBox)
app.connect(comboBox, SIGNAL("activated(const QString & string)"), label,
    SLOT("setText(const QString &)"))
app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
vBox.show()
app.exec_loop()

It wouldn't be surprising if I was missing something incredibly obvious 
today...

Thanks!

Eron




More information about the PyQt mailing list