[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Missing signal?
From:       Eron Lloyd <eronlloyd () gmail ! com>
Date:       2005-04-04 22:00:32
Message-ID: 200504041800.32806.eronlloyd () gmail ! com
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic