Hello,

Can I use a class defined in another .js file?

I.e. class A defined in a.js file. I want to define another B class in b.js which will be extending A class.

I load these files using such code:

QJSEngine::evaluate(afile.readAll(), afile.fileName());
QJSEngine::evaluate(bfile.readAll(), bfile.fileName());

For now, the second line throws error that A class is undefined.

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to