On 16.11.2010 23:49, ext Hugo Parente Lima wrote:
Hi list.
Yes, we need yet another PSEP, but for a minor missing feature IMO.
When translating the tutorials about extending QML I found that we don't have
the equivalent of Q_INVOKABLE macro, fortunately we have a workaround for it
that is just to tag the method as @Slot, but what if for some dark reasons you
want to export some method to the QMetaObject system and don't want it to be a
slot?
So my suggestion is to add a tag @Invokable to do this, it will work the same
way @Slot does, but the method will be registered on QMetaObject just as an
invokable method, not a slot.
Hi,
I think this is pretty straightforward, backwards compatible, and
potentially a very useful thing to have. And I like the decorator approach.
I can write the first draft and slap your name on it. :-p
ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside