Injecting Javascript into all webpages.
Unsolved
QtWebEngine
-
wrote on 29 Nov 2020, 21:39 last edited by
Hey all! Looking for a way to inject a javascript eyetracking library into all webpages opened in my qt webengine based browser. I've tried adding it as a source file to my project, but that prevents me from building the project, as the library calls onto window, document and other objects not usually available to Javascript in Qt.
After that I've tried to inject it using webengine script like this:
WebEngineScript{ injectionPoint: WebEngineScript.DocumentReady name: "GazeCloudApi" sourceUrl: "/home/tylnesh/GazeCloudAPI.js" worldId: WebEngineScript.MainWorld }
but I always get this error message:
Can't open user script QUrl("qrc:/home/tylnesh/GazeCloudAPI.js")
-
wrote on 10 Dec 2020, 11:57 last edited by
17 views and no reply?