486 questions
0
votes
0
answers
99
views
Cannot import QtWebEngineWidgets in PySide6 on a docker Windows container
I have a python PySide6 program that I want to compile and test on a container. The program runs on Windows, so I have a Windows container:
FROM winamd64/python:3.13.5-windowsservercore
# .. install ...
0
votes
1
answer
119
views
Pyinstaller PyQt6 app cannot find QtWebEngineProcess
I am making a PyQt6 application using the QtWebEngine module. I am trying to use Pyinstaller to turn it into a .app file that can be distributed. The issue I'm currently facing is that the application ...
1
vote
0
answers
105
views
Is smooth scrolling possible with QtWebEngine?
I was creating a scrolling table for a Neutron app (Python, HTML, CSS using PyQt6 and QtWebEngine) and noticed the table scrolled smoothly (scroll animation) with the scroll wheel in the Live Preview ...
0
votes
1
answer
75
views
Python QtWebEngine how to disable cacheing
I'm using python3 and Qt5, and recently made the switch from QTextBrowser to QtWebEngine. my project is https://github.com/carlbeech/OpenSongViewer, which is a songbook - songs in a pick list, and ...
0
votes
0
answers
72
views
QWebEngineView is not functioning with WebAssembly module (used by Pyodide)
I am using windows 10, PyQt5, monaco and pyodide. I want to display a .html page on a desktop app, via PyQts libraries. The html file runs when I use it on the web, but not via a desktop app using ...
0
votes
0
answers
202
views
Qt 6.8.1 Windows 11 QtWebEngine link error
Environment: Qt 6.8.1, Windows 11, MinGW 13.1.0.
I use QtWebEngine that is installed under the folder C:\Qt\6.8.1\msvc2022_64 because it requires the MSVC environment and not MINGW.
When I build my ...
0
votes
0
answers
53
views
How to fill login forms with QWebEngineView with code only? [duplicate]
I am trying to integrate a web page from a server into my GUI, the user should be able to view, scroll, interact with the page in some way. But to access the page, a login needs to be done.
The login ...
2
votes
1
answer
426
views
Qt 6.8 linux (gcc) webengine is missed
I noticed that in the Qt installer for Linux (GCC) in Qt 6.8, WebEngine has disappeared, but I couldn't find any official information about the reasons for its removal. Moreover, the official ...
0
votes
1
answer
34
views
Unable to get PYQT5 headless print HTML to PDF work as Azure function App with Linux App service plan
I have a code something like below to print HTML as PDF using PyQt5 library. This code works fine when tested via VS code function core tools however when it is deployed as azure function app I get an ...
0
votes
0
answers
36
views
How to Expose C++ Qt WebView and Window Functions to Python Without Using PySide or PyQt?
I'm working on a project where I need to integrate a Qt6 WebView into Python. The WebView should allow dynamic control from Python, including:
Setting the window size and style (e.g., resizing, full-...
0
votes
0
answers
76
views
Bokeh s.replaceAll
I am trying to create a PyQt5 app with a Bokeh plot in a QtWebEngineWidget.
While doing so I get an Error:
js: Uncaught (in promise) TypeError: s.replaceAll is not a function
For a proof of concept I ...
-1
votes
1
answer
107
views
how can i convert this qml.webengine app to html 5
https://imgur.com/a/5ncaedR
This is a simple little app that just loads webviews for each goggle app
Created in qml using qt.webengine, but getting errors on out of date web browser
I am not going to ...
1
vote
0
answers
41
views
How to access JS variables defined in a QtWebEnginePage.runJavaScript call from the HTML document <script> tag?
I'm trying to add to a PyQt5 application a QtWebEngineView widget. This widget must load the following very simple SVG:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www....
1
vote
1
answer
221
views
Get chromium version of QtWebengine without starting QtApplication
I have a custom browser using QtWebEngine which I can start from the commandline and pass it a website. It also has a --version option which if set prints out the browser version, QtWebengine version ...
0
votes
0
answers
441
views
QtWebEngineWidgets searching wrong directory? [duplicate]
Trying to do a basic program utilizing QWebEngineView:
from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication
from PyQt6.QtWidgets import QMainWindow
from PyQt6.QtWebEngineWidgets ...
1
vote
0
answers
33
views
QProcess::startDetached() hangs out when executing google-chrome
The issue is present only on CentOS 7, using Qt 5.12.6
In the Qt application we open a configuration tool using the following command:
QProcess::startDetached("google-chrome", {"http://...
0
votes
0
answers
205
views
How to get http requests made by a QWebEngineView?
I want to save to a file all the http requests (get, post, ...) that a QWebEngineView sends during a navigation session (like I would do with Firefox: inspect > network > save to HAR file).
...
0
votes
0
answers
115
views
PyQt5 WebEngine does not display pages like angular.dev or react.dev properly
I can't figure out how to make pages like react.dev, angular.dev, facebook.com, or chat.openai load properly.
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from ...
0
votes
0
answers
82
views
Python QTWebEngine page doesn't load with custom cookie
I want the user to input an account name so I can look for a matching token on storage.
If the token exists I want to load a webview with the set cookie. This will aid in fast login when the user has ...
0
votes
0
answers
39
views
Can't get multi tab functionality to work in PyQt5 (QtWebEngine)
So, I made a browser in QtWebEngine, and whenever I make a new tab, and click on a link that takes me to another page, and I click on the back button to go back to the previous one, it doesn't do ...
-1
votes
1
answer
585
views
How to debug QtWebEngine sandboxing
we have an app that renders some off-line files via QtWebEngine. The app is multiplatform.
Yet recently when upgrading to Qt6 on MacOS the rendering stopped working.
If I turn of the QtWebEngine ...
0
votes
1
answer
2k
views
c++ fatal error when building QtWebEngine
When I try to build Qt 6.2.4 from source, the compiler terminates unexpectedly close to the end for some reason. Would you be able to help me diagnose the issue?
There were a number of compiler ...
1
vote
0
answers
319
views
QWebEnginePage::acceptNavigationRequest() not being triggered on link click
I am porting from QWebKit (Qt 4.8) to QWebEngine (Qt 5.15). In the application, we set some of our own basic HTML into a view (just some text which contains href links). The link URL is actually just ...
1
vote
0
answers
249
views
Multiple QWebEngineProcesses created by QWebEngineView eats up memory
In my application I have a list of buttons and clicking on each creates a new QWebEngineView in a QMainWindow. On closing the QMainWindow I want the QWebEngineView (and the QWebEngineProcess that it ...
1
vote
0
answers
835
views
Qt += webenginewidgets for Mingw
I want to add web engine widgets to my project so i write Qt += webenginewidgets in .pro file. The error i see: "Project ERROR: Unknown module(s) in QT: webengine". My Qt version is 6.5, web ...
1
vote
2
answers
3k
views
How to render HTML in PyQt5 window? [duplicate]
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 ...
1
vote
1
answer
1k
views
Qt6.4.2 webengine configuration failed
Ubuntu 20.04
I need to install qt6 including qtwebengine package, but when I run configuration ./configure -opensource -nomake examples -nomake tests -force-debug-info I get a message that some of the ...
0
votes
0
answers
30
views
What is the proper way to configure a pyqt browser to make the right click menus work on it [duplicate]
So, I've been working with PyQt5 and their implementation of chromium to make my own web browser in python. But, I've come across an issue, after adding a tabs system and a settings menu, some of the ...
1
vote
1
answer
975
views
Python, PySide6; JS not receiving data from QWebChannel
I've seen many many answers about this question, but still cannot figure it out.
I made two files, one - html with qrc definition + new QWebChannel, and second python file with Object and ...
1
vote
0
answers
347
views
How to read a JavaScript event from QtWebEngine?
I'm trying to read a JavaScript event from a QtWebEngine widget following these answer1, answer2.
In my code below, when i run the first JavaScript call, it does print the button element correctly:
...
2
votes
1
answer
259
views
How to detect when a QWebEngineView widget is opened/closed?
I'm adding the discord widget from widgetbot to a grid layout in a way it can expand above other widgets, the problem is, even when the widget is 'closed' the QWebEngineView widget occupies the entire ...
1
vote
1
answer
2k
views
set vcpkg x-buildtrees-root option in manifest or in cmakepresets.json
I've a CMake project that uses vcpkg.json for using vcpkg, and CMakePresets.json for setting the CMake options.
This is the vcpkg.json:
{
"name": "myproj",
"version": ...
2
votes
1
answer
748
views
QML WebEngineView + WebChannel not loading the script
Trying to use QML WebEngineView + WebChannel (Qt 5.15), but when running the videoTime script, I get
js: Uncaught ReferenceError: QWebChannel is not defined
Here is a reproducible example
import ...
1
vote
0
answers
466
views
ERR_TOO_MANY_RETRIES error when loading a local webpage PySide2, QUrl, and QtWebEngineWidgets.QWebEngineView
I am receiving a ERR_TOO_MANY_RETRIES while trying to load a local SQL website into a PySide2 application. Any solution to this?
I have tried using https and http, as well as using reports = QUrl....
0
votes
1
answer
467
views
Copy selected text from PDF in PyQt5 QWebEngineView
I use PyQt5.QtWebEngineWidgets to display a PDF and I'm trying to get the selected text.
Using hasSelection() and selectedText() works on HTML files, but it fails when the web view displays a PDF file....
1
vote
1
answer
196
views
QtWebEngine displays partially without margins
WebEngineView should be displayed in the whole window, but it's not. Right margin strip and bottom margin strip is not displayed. Instead a strip of (red) background is visible. Yet I can click on red ...
1
vote
0
answers
517
views
QtWebEngineQuick didnt show html content from resource file
I want to compile and run WebEngine Recipe Browser Example with Qt-6.2.3 or Qt_6_4_0 but I get this error:
QML debugging is enabled. Only use this in a safe environment.
qt.webenginecontext:
...
1
vote
0
answers
184
views
Render html tags attrs on QtWebEngine page in pyqt
I am working on a Qt project that requires some HTML tags attrs to be rendered over the main page. for example, id or class name. But I am not sure exactly how to proceed with this. Does anyone have ...
0
votes
2
answers
2k
views
PyQt5 QWebEngineView causes the whole window to go white/blank
I have this weird problem on Windows 10 with PyQt5 QWebEngineView.
When I delete self.webView = QtWebEngineWidgets.QWebEngineView(self.groupBox_4) from window_ui.py which is generated with pyuic5 app ...
0
votes
1
answer
379
views
QWebEngineView does not find some libraries which are installed
To solve a display problem I was suggested to use QWebEngineView.
I inserted
from PyQt5.QtWebEngineWidgets import QWebEngineView
in the script which when executed emits:
from PyQt5.QtWebEngineWidgets ...
1
vote
1
answer
476
views
QML QtWebEngine Embed Youtube autoplay not working
I embed youtube within QML WebEngineView. Everything is working fine but only the autoplay is not working. I try to add ( ?autoplay=1 ) after URL as this answer How can I autoplay a video using the ...
1
vote
0
answers
780
views
Improve performance of QWebEngine offscreen rendering
I want to use QWebEngine to render an animated webpage offscreen (with transparency). And I want to do it fast (e.g. 60 fps, which imposes ~16 ms maximum time per render).
This other SO question Is it ...
0
votes
0
answers
277
views
I created a python browser using PyQt5, yet some videos on many websites don't run, they make the browser crash
am I missing something? should I install some other libraries to make my browser work?
basically, I just did the interface. can someone explain what's the problem?!
if you run this code it will take ...
1
vote
1
answer
579
views
Redirect debug output of Chromium in Python
I have a pywebview, that launches a Qt window utilizing the QtWebEngine with Chromium on Windows.
When starting the webview in debug mode, the following output is of particular interest for me:
...
0
votes
1
answer
216
views
Qt 6.3.0 - Is the QtWebEngine object able to manage the display in offline mode?
I am developing a Qt application displaying a WebEngineView.
The cache is working properly.
I would like to go further by integrating an offline mode:
without a network, the application must display ...
0
votes
1
answer
862
views
QtWebEngineView crashes python when loading content
I'm currently working with PyQt5 and PyQtWebEngine and I want to create a small browser.
OS and version info:
Windows 10
Python 3.9.6
PyQt5 5.15.6
PyQtWebEngine 5.15.5
I installed all these packages ...
1
vote
1
answer
2k
views
QtWebengine 5.15.10 with proprietary codecs, build problems on Ubuntu 22.04
I wrote an application with QtWebEngine, but I need support for the h264 codec and QtWebEngine doesn't include it by default because of patent problems, or so I heard.
That's why I decided to build ...
1
vote
0
answers
621
views
error when i try to use webengine module in qt
Hellow everyone recently i'am trying to use qtwebengine in qt but every time i get an error
this is my code :
#include <QApplication>
#include<QtWebEngineWidgets/QtWebEngineWidgets>>
...
1
vote
1
answer
436
views
PyQt5: How to set SameSite/Secure headers in QNetworkCookie
I have some Python code which sets a cookie like this:
loader = QtWebEngineWidgets.QWebEngineView()
profile = QtWebEngineWidgets.QWebEngineProfile("storage", loader)
cookie_store = profile....
0
votes
1
answer
520
views
Python PyQT5 WebEngine Segmentation fault Error
I wanted to create an app to download ms store app, it ran fine untill today now when i try to open the site (https://apps.microsoft.com/) pyqt5 window crashes and it shows 'Segmentation fault', when ...