Hi Yosef, I think it should be : @QtCore.Slot(int, int, result="QVariant")
Regards, Yann 2013/1/13 Yosef Meller <yosef...@post.tau.ac.il> > ** > > On Sunday 13 January 2013 11:46:23 you wrote: > > > And I return it from a slot like this: > > > class ImageExplorer(QtCore.QObject): > > > @QtCore.Slot(int, int, result=object) > > > def image_targets(self, frame, cam): > > > return TargetListModel([ > > > {'x': 100, 'y': 100}, > > > {'x': 200, 'y': 200}, > > > ]) > > > > Sorry, the slot declaration should read: > > @QtCore.Slot(int, int, result=TargetListModel) > > > > Yosef. > > > > _______________________________________________ > PySide mailing list > PySide@qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside > >
_______________________________________________ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside