On 9 July 2015 at 21:35, Jason H <jh...@gmx.com> wrote: >> Sent: Thursday, July 09, 2015 at 4:26 AM >> From: "Jaroslaw Staniek" <stan...@kde.org> >> To: interest@qt-project.org >> Subject: [Interest] Exposing types to the QJSEngine in Qt 5.5 >> > ... >> Adding qRegisterMetaType<Actor>() prior to engine instantiation does not >> help. > ... >> -- >> regards, Jaroslaw Staniek > > I've never used that form, just qRegisterMetaType<Actor>("Package", 1, 0, > "Actor");
I cannot spot it in the API. Do you mean qmlRegisterType(...)? Please note, I am asking about javascript not QML. Back to the question, so finally, what does Qt's QJSEngine 5.5 give us in this area - can we instantiate custom objects in javascript as easily as in QtScript? -- regards, Jaroslaw Staniek KDE: : A world-wide network of software engineers, artists, writers, translators : and facilitators committed to Free Software development - http://kde.org Calligra Suite: : A graphic art and office suite - http://calligra.org Kexi: : A visual database apps builder - http://calligra.org/kexi Qt Certified Specialist: : http://www.linkedin.com/in/jstaniek _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest