List Info

Thread: kross




kross
user name
2007-01-03 16:31:04
Hi,

for kross defining of what can and can not be called by a
script is by making 
it a QObject and exporting the methods to use as slots.

I think a clearer method is to use

Q_SCRIPTABLE
or
Q_INVOKABLE
for marking methods callable by QMetaObject::invokeMethod.
This is more clean in the API docs IMO.

Q_INVOKABLE is used to turn any member function (aside from
slots and signals) 
into functions invokable by QMetaObject::invokeMethod

Q_SCRIPTABLE = Q_INVOKABLE + set the scriptable qProperty.

What do you think?
-- 
Thomas Zander
_______________________________________________
koffice-devel mailing list
koffice-develkde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )