When I run this code, I get a SyntaxError as a result. AFAICT, there’s nothing wrong with the syntax. Why wouldn’t this work?
QQmlEngine engine;
QJSValue res = engine.evaluate("import \"test.js\" as Test");
↧