The QWebEngineView class provides a widget that is used to view and edit web documents
Questions tagged [qwebengineview]
322 questions
10
votes
1 answer
Communicate with html/javascript using QWebEngineView
I need to get a dynamic content, that is being loaded by a ajax js call.
I really don't know how to use PyQt but i was hoping i could do this. The HTML is something like:

raul ferreira
- 886
- 7
- 21
8
votes
1 answer
PyQt QtWebChannel: calling Python function from JavaScript
I am trying, using Qt classes QWebEngineView, and QWebChannel to make a simple connection between HTML page and Python script. The goal is simply to execute foo() when the header
is clicked. import sys from PyQt5.QtCore import pyqtSlot from…

MrLoon
- 831
- 1
- 8
- 16
6
votes
0 answers
PyQt5 - Can't change proxy more than once after QWebEngineView initialized
I followed this solution and worked fine at the beginning.
Connect QWebEngine to proxy
But i cant change proxy again after i change it once or QWebEngineView doesnt cares it.
The original code contains more than that, so i purified it to a working…

obayhan
- 1,636
- 18
- 35
6
votes
1 answer
How to add static(html, css, js, etc) files in pyinstaller to create standalone exe file?
I'm using QtWebEngineWidgets, QtWebChannel to create PyQt5 application, which uses HTML, CSS, JavaScript.
It's working fine, when we run in general way i.e., python main.py
Importing HTML as below,
current_dir =…

Python coder
- 743
- 5
- 18
6
votes
1 answer
Is it possible to render QWebEnginePage/QWebEngineView offscreen?
I have this partially working, but I'm facing several difficulties:
1) It appears that QWebEnginePage requires a QWebEngineView. (see setView() method here: https://code.woboq.org/qt5/qtwebengine/src/webenginewidgets/api/qwebenginepage.cpp.html)
2)…

mpr
- 3,250
- 26
- 44
6
votes
1 answer
Launch javascript function from pyqt QWebEngineView
I'm planning on executing a javascript function from pyqt QWebEngine. I followed a example which was using a map and map bound were retrieved when a Qt application button was pushed, and wrote a small example.
html:
…

Roman Rdgz
- 12,836
- 41
- 131
- 207
5
votes
0 answers
How ensure QWebEngineView is fully rendered before taking screenshot?
I want to take a screenshot of QWebEngineView for a page with a large image. When running code below red background is rendered correctly but the image is not.
How can I ensure the page is fully rendered before taking a screenshot?
from PySide2…

Krzysztof Sakowski
- 125
- 1
- 10
5
votes
1 answer
How to detect button click inside Qwebengine in pyside2
I wrote an app in pyside2, which opening a webpage in QWebEngine.
That web page has 2 buttons, I am not understanding how can I detect a button click in pyside2 app module, I need to perform other operation on that button click.
Example
below is…

Lalitkumar Tarsariya
- 646
- 10
- 25
5
votes
0 answers
QWebEnginePage does not know its contents size
I have a very simple application using WebEngineView and I just wanted to resize the widget displaying to the contents of the html file. I'm expecting it to be 30 pixels wide. Instead my program prints QSize(0,0) and even worser the widget is not…

Aleph0
- 5,816
- 4
- 29
- 80
5
votes
3 answers
Using a local file in html for a PyQt5 webengine
I am trying to embed a plotly graph into a PyQt5 webengine view. I was able to do so using the following:
open plotly in qwebview in interactive mode
If you read it, the article explains that you can't directly include the javascript in the HTML…

Joubert Lucas
- 153
- 2
- 12
4
votes
1 answer
Render Markdown with PyQt5
How can I render a markdown file in my PyQt5 application?
Here I read that I should use a QWebEngineView instead of a QTextEdit because the QTextEdit can't render external images.
In a comment someone references this example. It is however a…

Legatio
- 259
- 3
- 9
4
votes
1 answer
Detect mouse clicks on QWebEngineView
How can I detect mouse clicks in QWebEngineView widget?
I tried this but doesn't work:
class MyWin(QtWidgets.QMainWindow):
def __init__(self, parent=None):
QtWidgets.QWidget.__init__(self, parent)
self.ui = Ui_MainWindow()
…

Cliffhanger
- 59
- 4
4
votes
0 answers
Disable scrolling to left/right/up/down in Qwebengineview
I want my qwebengineview can't scroll to the left/right/up/down.
My situation is like this:
It was asked in Qt Fourm first, however I can't find a solution for this.
QT Fourm link: link
Please see the minimum code example code below. It's not the…

Hhry
- 823
- 1
- 8
- 19
4
votes
1 answer
Embedding a Plotly-Dash plot in a PyQt5 GUI: Handshake Failed, SSL Error
I am trying to build a GUI to help my team rapidly compare large amounts of test data in the form of signals. I envision highly modular, interactive plots in a format that looks similar to Audacity. I'm building the GUI in PyQt5 and am currently…

squiiidz
- 83
- 1
- 12
4
votes
1 answer
How to download csv file with QWebEngineView and QUrl
I'm building a program which uses QWebEngineView and QUrl to display a website in my PyQt5 app (running on Windows 10). However, I now want to be able to download a CSV file from the same website, but being a noob I can't seem to figure out…

codeacker
- 85
- 1
- 11