[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Missing signal?
From: Eron Lloyd <eronlloyd () gmail ! com>
Date: 2005-04-05 1:21:29
Message-ID: 200504042121.29755.eronlloyd () gmail ! com
[Download RAW message or body]
Ah ha, guess I need more rest... thanks a lot.
Eron
On Monday 04 April 2005 6:34 pm, Torsten Marek wrote:
> Eron Lloyd schrieb:
> > 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()
>
> Signals don't have names for the arguments, just types.
> It must be
> app.connect(comboBox, SIGNAL("activated(const QString&)"), label,
> SLOT("setText(const QString &)"))
_______________________________________________
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