Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Importing files with evaluate() function

$
0
0
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");

Viewing all articles
Browse latest Browse all 4972

Trending Articles