This helped:
Qt Code:
qmlRegisterType<MyTest>();To copy to clipboard, switch view to plain text mode
However, documentation of QJSEngine is far from perfect: it's really hard to catch (at least for me) interrelation between QML and QJSEngine. What do they have in common, and where do they differ.
Bookmarks