Hello,
I'd like to bind a class from C++, say MyClass, to my QtScript engine. So a user could then create an object of it, e. g.:
Qt Code:
var usersObjectOfMyClass = new MyClass("someArg"); usersObjectOfMyClass.doSomething();To copy to clipboard, switch view to plain text mode
Is it possible to predefine such classes in C++ that could be exposed and instantiated using the "new" word inside the ECMAScript?
Bookmarks