[Interest] Exposing types to the QJSEngine in Qt 5.5

Jaroslaw Staniek staniek at kde.org
Mon Jul 13 12:52:52 CEST 2015


On 9 July 2015 at 21:35, Jason H <jhihn at gmx.com> wrote:
>> Sent: Thursday, July 09, 2015 at 4:26 AM
>> From: "Jaroslaw Staniek" <staniek at kde.org>
>> To: interest at 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



More information about the Interest mailing list