Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

QT 5.2 - Including / Importing a JavaScript Resource from Another JavaScript Resource is broken since 5.2

$
0
0
In my qml project I use a.js, bs.js and z.js. a.js and b.js use functions of z.js. So I included z.js with the following code in a.js and b.js: Qt.include("z.js") This worked perfectly with QT 5.1, but since I switched to 5.2 it doesnt work anymore. I get the following error: a.js: TypeError: Property 'myExternalFunction' of object [object Object] is not a function I looked at the Docs [qt-project.org] and tried the alternative “.import” code, but this gives me a “Syntax error” in my a.js and b.js. Is there any way to fix this? Or is this a new introduced bug that cant be fixed by myself?

Viewing all articles
Browse latest Browse all 13965

Trending Articles