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/
signature.asc
Description: Digital signature
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt