[PySide] What can be returned from a slot?
Yosef Meller
yosefmel at post.tau.ac.il
Sun Jan 13 10:57:02 CET 2013
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130113/4b642ed3/attachment.html>
More information about the PySide
mailing list