[PyQt] Re: pyqtSignature question

Phil Thompson phil at riverbankcomputing.com
Tue May 6 07:31:14 BST 2008


On Tuesday 06 May 2008, Catriona Johnson wrote:
> 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.

As I said, I don't understand the question. You don't need to use 
pyqtSignature() to make a connection to a method.

Why do you think you need to use pyqtSignature()?

Phil

> 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
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt




More information about the PyQt mailing list