Skip to content

KJSEmbed marches on

Sunday, 12 October 2003  |  rich

I haven't written much about KJSEmbed for the last couple of weeks because I've been concentrating on squashing bugs in kasbar, but over the last couple of days I've had a chance to work on some kjsembed stuff that has been becoming more and more important.

The biggest change is that slots can now return QObjects with KJSE automatically creating the right wrapper classes. This change makes the process of writing QObject based wrapper much easier as there is no need to add custom method implentations if you have nested objects. While I was at it, I extended the code for calling slots from scripts so you can pass these objects back to your application. For completeness, I made it work for any opaque pointers or unsupported QVariant types that might be used too.

During this period of activity, there have also been a bunch of improvements to the documentation and to the flexibility of the JSConsoleWidget class.