Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Load modules in QWebEnginePage



  • Re: ES6 modules in QWebEnginePage?

    Actually to use ES6 modules, a server needs to be running . Otherwise we get CORS errors.
    My question here, can we inject scripts which load other modules (<script src="abc.js" type="module> ") into QWebEnginePage without running any server??

    Can I import other scripts in my .js files like @Import "abc" "abc.js"

    Does QWebEnginePage start any server in the background?

    INFO: In case of electron, node js manages 'require' statements without starting any server.


Log in to reply