[PyQt] Re: pyqtSignature question
Catriona Johnson
catriona.johnson at gmail.com
Tue May 6 00:14:09 BST 2008
Hi Phil
I was just playing with the examples in Mark Summerfield's book on
@pyqtSignature and was wondering how signals/slots other than those
for buttons etc might be written. I was having trouble with this
QTableView example.
Thanks
>
> Message: 4
> Date: Thu, 1 May 2008 13:08:49 +0100
> From: Phil Thompson <phil at riverbankcomputing.com>
> Subject: Re: [PyQt] pyqtSignature question
> To: pyqt at riverbankcomputing.com
> Message-ID: <200805011308.49503.phil at riverbankcomputing.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thursday 01 May 2008, Catriona Johnson wrote:
> > Hello
> > I have a signal/slot connection which I want to express with
> > @pyqtSignature syntax but am not sure how to do it.
> >
> > self.connect(self.myView.selectionModel(),
> > SIGNAL("currentRowChanged(QModelIndex,QModelIndex)"), self.changed)
> >
> > Any help appreciated.
>
> I don't understand the question. You don't use the signature to make the
> connection. You use it to associate a C++ signature with a Python method.
> That's not required here.
>
> Phil
>
>
>
More information about the PyQt
mailing list