Questions tagged [qwebengineview]

The QWebEngineView class provides a widget that is used to view and edit web documents

Documentation

322 questions
4
votes
1 answer

Installing Qt5 webenginewidgets module from Ubuntu repositories

I know I can install any Qt5 module using the Qt Maintenance Tool, which I used before. However, in the latest Ubuntu (18.04), I've stumbled upon a problem: my app uses QNetworkManager, and SSL-connections are now not working, apparently because Qt…
Maximko
  • 627
  • 8
  • 20
4
votes
1 answer

How to insert a web browser in Python QT Designer

I have created a simple user interface in QT Designer 5 and would like to include a widget that displays a webpage. I use the following code to use the ui file with python: from PyQt5 import uic, QtWidgets import sys app =…
West
  • 2,350
  • 5
  • 31
  • 67
4
votes
1 answer

How do I display a border around a QWebEngineView?

I have a QGraphicsWidget which I am using to paint and display a number of items including a QWebEngineView using the QGraphicsProxyWidget. I am able to load web content into QWebEngineView, but I would like to make the view contain a border. I…
Michael Japzon
  • 201
  • 1
  • 2
  • 10
4
votes
1 answer

QWebEngineView: showing load progress

I'm using a QWebEngineView widget with PyQt5 and Python 3.6. I want to show progress, when a page is loading. For demonstration purposes I just do this using print statements (later I want to let a progress bar widget appear, show the progress and…
petro4213
  • 163
  • 9
4
votes
1 answer

Connect QWebEngine to proxy

I created my own proxy to intercept packets on 127.0.0.1:6666, and I want it so all packets sent from QWebEngine gets sent to the proxy. I looked this up and I found a few websites saying to use QNetworkProxy, but it never showed how to get it to…
Bale
  • 553
  • 1
  • 8
  • 19
4
votes
2 answers

QWebEngineView - loading of > 2mb content

So, using PyQt5's QWebEngineView and the .setHTML and .setContent methods have a 2 MB size limitation. When googling for solutions around this, I found two methods: Use SimpleHTTPServer to serve the file. This however gets nuked by a firewall…
Berserker
  • 1,112
  • 10
  • 26
4
votes
0 answers

QWebEngineView crashes on Windows release builds as it can't find the required resource files

I am currently developing an application for Windows using Qt 5.9 that displays some local HTML files inside using a QWebEngineView instance. The code is rather simple, and I don't think it is relevant to the issue at hand: QWebEngineView *webView =…
martinarroyo
  • 9,389
  • 3
  • 38
  • 75
4
votes
3 answers

Is there any way to call synchronously the method 'toHtml' which is QWebEnginePage's object?

I'm trying to get html code from the QWebEnginePage object. According to Qt reference, QWebEnginePage object's 'toHtml' is asynchronous method as below. Asynchronous method to retrieve the page's content as HTML, enclosed in HTML and BODY tags.…
ko.nyk.93
  • 43
  • 4
4
votes
2 answers

Qt QWebEngineView not allowed to load local resource

Edit: This is not a duplicate. The linked question handles a CORS security question where the browser will not let you load scripts from different sources. My question is related to a basic resource loading scheme (file:/// vs qrc:/). I am trying…
BigONotation
  • 4,406
  • 5
  • 43
  • 72
3
votes
2 answers

PyQt5 : QWebEngineView doesn't load URL

I'm trying to make a browser, using Python 3.10.4 & PyQt5 v5.15.6, in a virtual environment (venv). My problem is that QWebEngineView doesn't load URL, so I just have a blank window. Here is my code: import sys from PyQt5.QtCore import * from…
jauche
  • 61
  • 8
3
votes
1 answer

How add circle markers to a rendered folium map embedded in a QWebEngineView?

I want to develop a desktop application that involves receiving a geographic coordinate every second from a serial port and adding to a map in real-time. The map should look like the below link: I have written a piece of code to test Folium's…
Amir
  • 65
  • 1
  • 2
  • 7
3
votes
1 answer

How to customize python PyQt5 QWebEngineView context menu?

I am a beginner and need help to be an expert. Its been a month, since I am working with PyQt5 QWebEngineView library This is my code # importing required libraries from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import…
JashSmith
  • 211
  • 1
  • 15
3
votes
1 answer

How to open hyperlink with target="_blank" in PyQtWebEngine?

I have made a web browser using pyqt5 and PyQtWebEngine.It works fine but when I click on a hyperlink with target="_blank" then it does not work but how will I fix it. You can view its source code by clicking on this link…
Saptak Bhoumik
  • 127
  • 3
  • 9
3
votes
1 answer

How to catch javascript error in QWebEngineView in Qt Creator?

I'm debugging a javascript script running in QWebEngineView. I want to catch the js errors(such as calling a non-existed function) in Qt Creator. Currently, the js output through console.log() can be displayed in Qt application output window, but…
William
  • 761
  • 2
  • 10
  • 27
3
votes
1 answer

QtWebEngine intercepting request with custom URL schema serving reply

I am trying to rewrite several HTTP requests with a custom URL scheme: All requests to http://static.foo.bar should be rewitten to static://... and serving some reply. Problem: The interception and redirecting seems working, but whatever my…
Maurice Meyer
  • 17,279
  • 4
  • 30
  • 47
1
2
3
21 22