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. P.S.: Yes, the experiments to export python types to QML are going pretty well, but the way I did it probably isn't the most beautiful thing will ever had seen in your life. -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
