[PyKDE] Re: can't connect signal...
Christopher J. Bottaro
cjbottaro at alumni.cs.utexas.edu
Sun Feb 6 07:18:31 GMT 2005
Christopher J. Bottaro wrote:
> I get a runtime exception when I try to execute the following code:
>
> ---
>
> def _initConnections(self):
> QObject.connect(self.list_view,
> SIGNAL("contextMenuRequested(QListViewItem*, QPoint&,
> int)"),
> self.slotContextMenuRequested)
>
> def slotContextMenuRequested(self, item, pos, col):
> print "slotContextMenuRequested()"
>
> ---
Oops, got the signature wrong. Suppose to be
contextMenuRequested(QListViewItem*, const QPoint&, int)
Sorry for the noise.
More information about the PyQt
mailing list