Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Load modules in QWebEnginePage
Qt 6.11 is out! See what's new in the release blog

Load modules in QWebEnginePage

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 478 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Akshay911
    wrote on last edited by Akshay911
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved