The QWebEngineView class provides a widget that is used to view and edit web documents
Questions tagged [qwebengineview]
322 questions
1
vote
1 answer
Cannot load HTML file with QWebEngineView.setHtml()
The solution of my problem is probably very simple but yet out of my understanding. I am trying to load an HTML file into a QWebEngineView with PyQt5. The way I am doing it is:
self.webView = QtWebEngineWidgets.QWebEngineView(self.splitter)
html =…

umbe1987
- 2,894
- 6
- 35
- 63
1
vote
1 answer
How to redirect QWebEngineUrlRequestInfo to local files?
I have a simple Qt application that loads a page in a QWebEngineView. I would like to redirect all http requests with the word "static" in the url to local files. Using WebUrlRequestInterceptor I reimplemented the interceptRequest method. Here is…

madasionka
- 812
- 2
- 10
- 29
1
vote
2 answers
QWebEngineView does not load relative resources from an html page if the page is loaded from Qt RCC resource system
edit: Following @eyllanesc comment, here is a minimal example hosted on github. The test is run on Qt5.9, on OS X 10.12.
Base HTML
Let's create a minimal example HTML loading an image by relative path, test.html:
…

Ad N
- 7,930
- 6
- 36
- 80
1
vote
1 answer
Qt 5.8 and Pdf.js error
I have a problem with pdf.js and Qt 5.8, i tried to do the same code in this link Using pdf.js with Qt5.8 in my application but he doesn't work i dont know why, qt show me this message about JS :
"js: Uncaught TypeError: Cannot read property…

Qt first
- 35
- 1
- 9
1
vote
1 answer
QWebEngineView and QWidget in PyQt5
Python 3.6.1
PyQt5 (5.8.2)
OS: Windows
Ask:
I want to open site in programm and show botton in top or maybe not bottom, but i don't show nothing from QWidgets if i show QWebEngineView, and don't show QWebEngineView if QWidgets. How can i show…

Mr Lucky Tomas
- 148
- 1
- 6
1
vote
1 answer
QWebEnginePage.print with QPrintPreviewDialog results in empty preview
I have a program that used to use QWebKit to show and print custom generated HTML reports in a dialog and now, I want to convert the whole thing to QWebEngine. Everything works fine so far, only printing doesn't!
Up to now I used QWebView.print() to…

Holger Pandel
- 13
- 5
0
votes
1 answer
QWebEngineView does not import JavaScript functions from online repositories
I have created an html file for a tree diagram using the python package pyvis (version: 0.3.2). I would like to load this html file in a GUI using QWebEngineView of PyQT6 but I am getting the following error:
js: Uncaught ReferenceError: vis is not…

Shubham
- 1
- 3
0
votes
0 answers
PyQt6 WebEngineView - Windows 10 virtual keyboard issue
In pyqt6 QWebEngineView I load an url (e.g: w3schools modal) on Windows 10 (input: touch screen, without keyboard)
My problem is that, when the user open a Modal (like in the link), and if it has an input field the Windows 10 virtual keyboard shows…

Haroshow
- 5
- 3
0
votes
0 answers
QWebEngineView Consuming Events Preventing Tab Switching, Shortcuts and other events from mainloop
I'm facing an issue in my Qt application where i replaced one view from QTextEdit to a QWebEngineView within a QTabWidget.
It seems that QWebEngineView to be blocking events. The problem is evident when attempting to switch tabs using both mouse…

helmi
- 61
- 7
0
votes
0 answers
DLL load failed while importing QtWebEngineWidgets error in PyQt6
I got this error:
Traceback (most recent call last):
File "c:\pythoncodes\DGA\Article1\from PyQt6.py", line 1, in
from PyQt6.QtWebEngineWidgets import QWebEngineView
ImportError: DLL load failed while importing QtWebEngineWidgets: The…

Milad Shafiei
- 1
- 1
0
votes
1 answer
Program on PyQt5 + QWebEngineView closes when loading youtube.music site
The program on PyQt5 + QWebEngineView closes when loading youtube.music site after about 3-4 seconds after opening, without any error, while any other site loads without any problems and the program does not close itself. This problem started today,…

ツDeeffest笑
- 1
- 2
0
votes
0 answers
Error "Network service crashed, restarting service" using QWebEngineView in python compiled exe file
Then i run from python, my code work fine. But? then i run compiled execution file, use cx_freeze, i get this error:
ERROR:network_service_instance_impl.cc(262)] Network service crashed, restarting service.
I wrote a simple repeatable code. In my…

J Jack
- 1
- 1
0
votes
0 answers
Why cannot the QML webengineview specify cache path and storage path?
WebEngineProfile{
id:weProfile;
cachePath: cppApp.currentDir()+'/cache';
persistentCookiesPolicy:WebEngineProfile.ForcePersistentCookies;
persistentStoragePath:cppApp.currentDir()+'/storage';
}
This is the settings of my profile. I…

popkc
- 106
- 3
0
votes
0 answers
Is it possible to make the InputPanel a WebEngineView element?
Is it possible to substitute the InputPanel (qt virtual keyboard) element with a WebEngineView?
So that it still opens when input is requested but is a webview element.
Changing the InputPanel to WebEngineView results in the virtual keyboard showing…

aberst
- 47
- 5
0
votes
0 answers
Issues to filter QInputMethodQueryEvent using Qt QWebEngineView
I am currently working on developing a simple web browser for an embedded system using Qt. The browser incorporates its own keyboard.
However, I am facing difficulties when it comes to interacting with the web page using the QWebEngineView class,…

Lerxt
- 1
- 1