[PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)

机械唯物主义 : linjunhalida linjunhalida at gmail.com
Tue Jul 27 06:53:01 BST 2010


pythonxy is this: http://www.pythonxy.com/  my os is windows.

I'm still using 4.6, sorry cannot help...

2010/7/27 Sybren A. Stüvel <sybren at stuvel.eu>

> On Tue, Jul 27, 2010 at 12:36:02PM +0800, 机械唯物主义 : linjunhalida wrote:
> > in my OS, works OK. pythonxy 4.6
>
> What's pythonxy? And what is your OS?
>
> > try:
> > smodel.currentChanged[QtCore.QModelIndex,
> > QtCore.QModelIndex].connect(self.on_change)
>
> Thanks for the suggestion. Unfortunately, it doesn't work:
>
> Running on Qt 4.6.2
> Traceback (most recent call last):
>   File "qttest.py", line 28, in <module>
>     win = Dialog()
>  File "qttest.py", line 19, in __init__
>     smodel.currentChanged[QtCore.QModelIndex,
>        QtCore.QModelIndex].connect(self.on_change)
> TypeError: on_change() has no overload that is compatible with
> currentChanged(QModelIndex,QModelIndex)
>
> Regards,
> --
> Sybren Stüvel
>
> http://stuvel.eu/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFMTnI/8ZTyn8Yy+5MRAl4+AJ9XVheTtrcDPhGyRsHXyPHKdB+MMwCaA2NL
> CFx5zzlFhQGCqaKDElEMoJc=
> =b7oy
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100727/1b3f1a4f/attachment.html>


More information about the PyQt mailing list