Fwd: [PyQt] QTreeWidget

Flavio Coelho fccoelho at gmail.com
Thu Nov 1 18:17:03 GMT 2007


---------- 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

thanks,

Flávio

On 11/1/07, alteo_gange <romanocaldoni at free.fr> wrote:
>
> The following signals works with me:
>
> "itemClicked(QTreeWidgetItem *,int)"
> "itemPressed(QTreeWidgetItem *,int)"
> "clicked(const QModelIndex)"
> "currentItemChanged(QTreeWidgetItem *,QTreeWidgetItem *)"
>
> --
> alteo_gange
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Flávio Codeço Coelho
----------------------------------------------------------------
"My grandfather once told me that there were two kinds of people: those who
do the work and those who take the credit. He told me to try to be in the
first group; there was much less competition."
Indira Gandhi
====================================
registered Linux user # 386432
get counted at http://counter.li.org
----------------------------------------------------------------


-- 
Flávio Codeço Coelho
----------------------------------------------------------------
"My grandfather once told me that there were two kinds of people: those who
do the work and those who take the credit. He told me to try to be in the
first group; there was much less competition."
Indira Gandhi
====================================
registered Linux user # 386432
get counted at http://counter.li.org
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071101/efa80319/attachment.html


More information about the PyQt mailing list