Questions tagged [qwebengineview]

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

Documentation

322 questions
1
vote
1 answer

QWebEngine 5.7.1 Offline navigation loading cache

I'm trying to develop a web application using QWebEngine but I'm facing a problem while handling offline state since I'm always redirected o Chromium error page "There is no Internet connection". I read that QWebEngine uses Chromiums network stack…
Dodz
  • 35
  • 1
  • 8
1
vote
1 answer

Resizing web page inside a spliter in qt

My question is simple, but I have been struggling to find the solution. I have the QMainWindow showed in the image, constructed in the QtCreator. I want to load an html web page in the QWidget csWindow, for that I have placed a Qlabel label_pic…
oaurbanov
  • 105
  • 1
  • 1
  • 12
1
vote
1 answer

Wrong scale for QWebEngineView with Windows Aero theme

We have problems with QWebEngineView on Windows 7 if an aero theme is enabled (default). Once the QWebEngineView is being rendered, the whole window is rendered in a wrong scale. When switching to a basic theme everything is being rendered as…
Heiko Robert
  • 2,488
  • 11
  • 12
1
vote
1 answer

How to popup a file dialog/print dialog in a html file that is rendered in a WebEngineView?

I have a local html file that use highcharts to display my data and save to images, it works well in chrome browser, then I try to load it in Qt 5.9.4 with a WebEngineView (QML type), all the popup dialogs are unable to dispaly. html file code:…
Jason
  • 33
  • 6
1
vote
0 answers

Qt: Print entire WebPage with Preview Dialog

So, I'm trying to print a QWebEngineView entirely, but give a Preview Dialog, such as QPrintPreviewDialog would be sufficient. First try was something along these lines: self.loader = QWebEngineView() [...] dialog =…
Berserker
  • 1,112
  • 10
  • 26
1
vote
1 answer

Load image in QML WebEngineView using QQuickImageProvider

I'm injecting HTML content into a QML WebEngineView using the loadHtml method, and I'm trying to get it to load the images through a QQuickImageProvider. Up to now, we've been successfully loading images from a Qt resource container (qrc), but this…
HorusKol
  • 8,375
  • 10
  • 51
  • 92
1
vote
1 answer

How Do I block ads in PyQt

I am building a web browser and i want to enable ad blocking in it. I have read multiple answers, but I havent been able to implement it successfully. I have successfully loaded the adFilter and ad matching works fine. I think this has something to…
1
vote
1 answer

How can I append html to my QWebEngineView

So in PyQt4 you could do something like this to append html to your page: webView.page().mainFrame().documentElement().appendInside(some_html) I was trying to find similar functionality in PyQt5's QWebEngineView but i couldn't find anything…
sup
  • 323
  • 1
  • 12
1
vote
1 answer

Auto Grant access to Mic and Camera with Qt WebEngine

I am building a home security system with RPi and WebRTC. I simply need a way to trigger a browser to open at a given URL and to auto-grant access to the Microphone and Camera. I had hoped to use the WebEngine library with PyQt but WebEngine is not…
Lee Melbourne
  • 407
  • 5
  • 20
1
vote
3 answers

Reading file from working directory QtWebEngine

Hello I am trying to set the QWebEngine URL to an index.html file that is placed in the working directory. I am trying to use the file by setting the URL to ./index.html but it cant seem to find the file. Here is where my files are placed content…
Noopty
  • 167
  • 2
  • 12
1
vote
1 answer

In-Page href in QtWebView fails to display anything

So, to try to boil this down to the simple bits. I have a href entries like this: linktext These In-Page links work if I load the page via Qts setContent, however, as my content often exceeds 2MB, I have to use the…
Berserker
  • 1,112
  • 10
  • 26
1
vote
1 answer

Pyqt5 Activate Proprietary codecs

Currently I am using Pyqt5, QWebEngine. When I try to open my HTML5
Pixsa
  • 571
  • 6
  • 16
1
vote
1 answer

Update Goole Maps Marker position with Python 'runJavascript' input

I am trying to create a simple app with PyQt5 and I want to show a google map web page. I would like to show a marker that appear on the map in a location that depends on some variables modified by the user in python. How can I do that using…
1
vote
1 answer

How to take webpage screenshots using QWebEngineView without opening window

I'm looking for a way to take website screenshots with QWebEngineView. The main goal is to develop a headless screencapture application that runs in the background. I've managed to get a minimal working example to work (see this for example). …
RAM
  • 2,257
  • 2
  • 19
  • 41
1
vote
1 answer

QWebEngineView - how to open links in system browser

I have the following code snippet working in PySide and need to translate it to work in PySide2. The purpose is to force all links to open in the system browser when clicked (rather than the widget trying to load them): from PySide.QtWebKit import…
Frank Rueter
  • 729
  • 1
  • 10
  • 21