I managed to expose an (uninstantiable) class to JavaScript using qmlRegisterType as follows: class MyClass : public QObject { Q_OBJECT ...
確定! 回上一頁