[Interest] Javascript: export class?
Alexander Dyagilev
alervdvcw at gmail.com
Mon Oct 25 19:32:12 CEST 2021
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.
More information about the Interest
mailing list