[PyQt] Issue with pyqtSlot(QModelIndex, QModelIndex)
Sybren A. Stüvel
sybren at stuvel.eu
Tue Jul 27 06:44:31 BST 2010
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100727/7deea1bd/attachment-0001.pgp>
More information about the PyQt
mailing list