Questions tagged [qwebengineview]

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

Documentation

322 questions
2
votes
1 answer

save html files in QWebEngineView browser

I am trying to create my own browser using Python QWebEngineView . I have followed a tutorial that worked on an previous version of PyQt5 (around 2015), but due to its recent updates, some parts of the previous code no longer work. I have fixed most…
zsheryl
  • 73
  • 7
2
votes
1 answer

Make any link (even _blank) open in same window using QWebEngine

I have this code that is supposed to visit/follow any link that I click in the same window, even if it would normally open in a new window. This would be instead of having to right-click and then select "Follow link" from context menu. For some…
Maxwe11
  • 97
  • 1
  • 1
  • 9
2
votes
1 answer

"Fullscreen is unavailable" embedding YouTube videos as iframe in QWebEngineView

I'm trying to embed a youtube video in a QWebEngineView, the video loads fine but the fullscreen button is disabled with this message "Fullscreen is unavailable" even thought the embed code does have "allowfullscreen" Code snippet: web =…
joke4me
  • 812
  • 1
  • 10
  • 29
2
votes
2 answers

OpenLayers Geolocation in PyQt 5.9

I've implemented a Website with a geolocation function and Button. This Webpage gets displayed fine in a QwebEngineView (OSM Map too). The Webpage is loaded def __init__(self, parent=None): super(MainGUI, self).__init__(parent) …
Trevirius
  • 217
  • 3
  • 14
2
votes
1 answer

How to make QWebEngineView of PyQt5 able to play audio?

I want to play audio on the web use QWebEngineView of PyQt5. This is my code: import sys from PyQt5 import QtWebEngineWidgets, QtWidgets if __name__ == '__main__': app = QtWidgets.QApplication([]) view =…
Jeffery
  • 307
  • 1
  • 10
1
vote
0 answers

PyQt QWebEngineView black flicker when tooltip of context menu comes up

My PyQtWebEngineView is randomly flickering black(i think it has to do with context menus and tooltips) Try it yourseft: import sys from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWebEngineWidgets import QWebEngineView,…
1
vote
1 answer

In Python Jupyter notebook, how to select an option from the combobox and click the "Print" button to print in the Chrome browser console?

I'm using Python in Jupyter notebook and Chrome browser, coding pyqt5 app. In some parts of the code, I need to use QWebEngineView for HTML Combobox widget ( not using Qcombox() ). The next code is when select an option from the combobox and click…
John
  • 107
  • 1
  • 14
1
vote
1 answer

Why my QWebEngineView stucks at instagram loading screen and don't accept inputs like reload

When I run everything works fine except it stops at instagram splash/loading screen, even the right click menu option don't work. Works for PyQt5 but not from PyQt6.There is no problem with internet connection. from PyQt6.QtWidgets import * from…
Akshat
  • 17
  • 4
1
vote
0 answers

QWebEnginePage - how to get access to Media Session API?

Web pages can expose Media Session API, it is using for lock screens notifications and also for changing playing status directly on the page https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API You can see what I mean by playing…
Dibo
  • 1,159
  • 17
  • 34
1
vote
2 answers

How to render HTML in PyQt5 window?

I'm new to using PyQt5 to create GUIs and I think I need a hand. I'm trying to just create a simple window that renders a simple html file. However, when I use the code below the window renders, but the central widget/entire window is empty. Have I…
Jaimee-lee Lincoln
  • 365
  • 1
  • 3
  • 11
1
vote
1 answer

QWebEngineView "Unexpected reserved word ''" when using await at top level

When I try to open html file wile running local server in browser, it works, but Qt complains about line in js where "await" is used. Below is a link to example that I'm trying to…
crends
  • 65
  • 4
1
vote
0 answers

How to connect PDF.js rendering signal to PyQt5.QtWebEngineWidgets

I use PyQt5.QtWebEngineWidgets with PDF.js to display pdf files. Is it possible to connect the rendering state of the page to the PyQt5.QtWebEngineWidgets, so that another function is run, when rendering is complete? Edit: I tried different…
Mazze
  • 383
  • 3
  • 13
1
vote
1 answer

Running standalone app using QWebEngineView created with PyInstaller on MacOS gives Couldn't mmap icu data file

I want to create a standalone application, which used PyQt5 QWebEngineView. Creating the application with PyInstaller gives the following error when the application is executed: Couldn't mmap icu data file The error only arises on MacOS and only if…
Mazze
  • 383
  • 3
  • 13
1
vote
0 answers

Could not find QtWebEngineProcess.exe

I was building an application(Equation solver) in PyQt5 which contains two frames. The first frame works just fine but the 2nd frame contains a QWebEngine widget which worked fine when I directly ran it from the code in my code editor but when I…
1
vote
0 answers

Python QWebEngineView.setStyleSheet

I'm currently working with PyQt5 and PyQtWebEngine and I want to create a small map in the form of a circle.I tried to add setStyleSheet but it didn't give good results. This is what I want to get : This is the code I made, but it doesn't give good…