[PySide] What can be returned from a slot?

Yann Lanthony yann.lanthony at gmail.com
Sun Jan 13 11:02:55 CET 2013


Hi Yosef,

I think it should be :
@QtCore.Slot(int, int, result="QVariant")

Regards,
Yann


2013/1/13 Yosef Meller <yosefmel at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130113/d27a2542/attachment.html>


More information about the PySide mailing list