Questions tagged [qwebengineview]

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

Documentation

322 questions
1
vote
0 answers

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 possible to render QWebEnginePage/QWebEngineView…
sthlm58
  • 1,142
  • 1
  • 9
  • 28
1
vote
1 answer

Is it possible in a PyQt application to get access from JavaScript code to a new window, created with window.open() command?

I try to adapt a Web application to use in a GUI, created with PyQt6. When I load the application in QWebEngineView widget I'm capable to debug its JavaScript routines in a normal way using a Chrome browser launched in parallel. The debugging shows…
1
vote
1 answer

QWebEngineView crashes when loading a PDF

I am porting my small project from pyqt5 to pyqt6 which deals with displaying PDFs using QWebEngineView. I used this PyQt5 snippet to display the PDF below: import sys from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import…
Eliazar
  • 301
  • 3
  • 13
1
vote
1 answer

Get non url-link when clicking on Link in PyQt5 QWebEngineView

I want to open self written html code in PyQt5 QWebEngineView. The html code should contain links, which are not url pages but have other information. Below a created a simple example. When clicking on the link named Link, python does not return the…
Mazze
  • 383
  • 3
  • 13
1
vote
1 answer

PyQt5: Reference local copy of Mathjax in QWebEngineView

Following this post and the mathjax 3 documentation, I am trying to render a simple html with Mathjax content in PyQt5 using a local copy of the mathjax repo. The main directory contains the notebook from which the following code is executed, a…
mocquin
  • 402
  • 3
  • 11
1
vote
0 answers

subclass QWebEngineView

File: simple_browser.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'simple_browser.ui' # # Created by: PyQt5 UI code generator 5.15.7 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is #…
Chris P
  • 2,059
  • 4
  • 34
  • 68
1
vote
1 answer

Programmatically change page in PDF.js with QWebEngineView

I am making an application in PyQt5 that involves displaying a PDF using the QWebEngineView and PDF.js by Mozilla. I am able to display the PDF no problem, but I cannot figure out how to either: 1: set the page on load, or 2: update the page after…
Nikolas
  • 60
  • 7
1
vote
1 answer

JavaScript Command document.getElementsByClassName not working on special page

I am currently writing a bot to fetch data from a web live ticker. Therefore i created an app, that displays the webbrowser using Python QWebEngineView. Now if i want to get a special Value from the html code of the site i am currenty…
1
vote
1 answer

Passing cookies to QWebEngineView

so I have a python code which converts url to pdf like below import sys from PyQt5 import QtWidgets, QtWebEngineWidgets from PyQt5.QtCore import QUrl, QTimer from PyQt5.QtGui import QPageLayout, QPageSize from PyQt5.QtWidgets import…
AMendis
  • 1,346
  • 4
  • 18
  • 34
1
vote
1 answer

WebEngineView getting text input focus

How can I detect focus on the text field (input) on the webpage displayed using QML WebEngineView? I need this information to display/hide the virtual keyboard.
kluszon
  • 375
  • 5
  • 19
1
vote
0 answers

QWebengineView : Disable Ctrl+mouse wheel

Is it possible to disable zooming(ctrl+mousewheel) of html content loaded in QWebEngineView. I tried qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--enable-blink-features=ShadowDOMV0,CustomElementsV0,--disable-pinch"); it is not working. Note: We are…
Akshay R
  • 47
  • 6
1
vote
1 answer

How create method for get the child (QWebEngineView) of th curent view tab (QTabWidget)?

I'm trying to make some project with QTabWidget (a litle browser and a text editor with multiple tab like notepad++) but I'm stuck in 2 project when I try to edit a value of widget (QWebEngine or QTextEdit) inside of QTabWidget. This is the code for…
1
vote
0 answers

How to Mute Sound in QWebEngineView PyQt5 Python

Problem I Want to Mute all sound QWebEngineView on Button click. And Also UnMute all Sound on another Button Click. I searched a lot on the internet but no one asked this type of Questions. Code from PyQt5.QtWebEngineWidgets import QWebEngineView,…
1
vote
2 answers

How to intercept request from QWebEngineView and serving them directely from the application?

Is there a way with QWebEngineView to intercept an http request, and to serve it server-less from the app ? I heard about QWebEngineUrlRequestInterceptor and acceptNavigationRequest(), but they provide only inspection on requests, and redirection…
hl037_
  • 3,520
  • 1
  • 27
  • 58
1
vote
0 answers

QWebEngineView interprets AltGr press as left arrow in WSL2

Context: Custom Qt application embedding a QWebEngineView widget used to display an Auth0 page. Compiled for Fedora against Qt5.15.2, run on Windows in a WSL2 distribution. vcxsrv is used to display the X11 window. Symptoms: In the email text field,…