I think this will be useless, because this will reproduce the same
behavior of @Slot decoration, because all methods in pyside are slots
candidate. Then maybe we can only create a alias to Slot = Invokable.


On Fri, Nov 19, 2010 at 10:46 AM, Matti Airas <[email protected]> wrote:
> 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
>



-- 
Renato Araujo Oliveira Filho
Instituto Nokia de Tecnologia - INdT
Mobile: +55 (81) 8704-2144
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to