On 10/29/25 19:09, Scott Bloom wrote:
I have this working via a QRC based html file, using the WebEngine to
process the javascript.

The html, uses the qtwebchannel.js from the qrc, and then also loads 3
javascript files via <script src="..."> tags, all via qrc:/ urls. (some
of the tags are in the head and some in the body.

I guess you expect QJSEngine to render an image only. The HTML is just a vehicle to get the .js files into WebEngine, right?

Your .js files make use of async and await. Are you aware of https://bugreports.qt.io/browse/QTBUG-58620? If that is not a showstopper already, have you read about importing from .mjs files? https://doc.qt.io/qt-6/qtqml-javascript-imports.html#imports-within-javascript-resources

Consider QuickJS-NG as JS engine instead and start without involving qrc. QuickJS-NG offers better language support than QJSEngine.
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to