Fwd: [PyQt] QTreeWidget

Phil Thompson phil at riverbankcomputing.co.uk
Thu Nov 1 19:52:14 GMT 2007


On Thursday 01 November 2007, Flavio Coelho wrote:
> ---------- Forwarded message ----------
> From: Flavio Coelho <fccoelho at gmail.com>
> Date: Nov 1, 2007 1:11 PM
> Subject: Re: [PyQt] QTreeWidget
> To: alteo_gange <romanocaldoni at free.fr>
>
> Thanks,
>
> I found the problem:
>
> I was trying to ignore the C++ signature so the signals didn"t connect to
> the slots:
>
> @QtCore.pyqtSignature("")
> def on_treeWidget_itemDoubleClicked(self, item, col):
>    ...
>
> This works for some signals but for this, I had to do it like this:
>
> @QtCore.pyqtSignature("QTreeWidgetItem *, int")
> def on_treeWidget_itemDoubleClicked(self, item, col):
>    ...
>
> that fixed my problem

Just remove the decorator.

Phil


More information about the PyQt mailing list