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

cannot change backgroundImage using QWebEnginePage::runJavaScript()

I originally want to solve this problem , but as I have tested the behavior of QWebEnginePage::runJavaScript() , I found I cannot even change the backgroundImage using QWebEnginePage::runJavaScript() with the following code, so why ? import…
iMath
  • 2,326
  • 2
  • 43
  • 75
2
votes
1 answer

Creating a open street maps view

I am trying to port this code: https://gist.github.com/ataffanel/13aac4b79bc0080b881f to the most recent versions of pyqt5, thus, using qtwebengine. The goal is just to have a map widget in the end. This is the code I already have, running with…
mattf
  • 85
  • 1
  • 8
2
votes
0 answers

PyQt5 open new window on js window.open with properties

I need to open a new window on click when there is window.open in html view... it does open as per my code. But when there is window.open with properties then it opens new window once and then it doesn't happen again I have tried different…
barry alan
  • 21
  • 2
2
votes
1 answer

How to enable allowGeolocationOnInsecureOrigins in python and QtWebEngine

I'm making a web browser in Python and PyQt5 and I want to enable allowGeolocationOnInsecureOrigins in my web browser so I can access users location via Google Geo Location API. Code self.browser =…
Muhammad Azeem
  • 309
  • 1
  • 2
  • 9
2
votes
1 answer

Eliminate QWebChannel property notifier signal warnings

I'm using QWebEngineView with QWebChannel, similar to this: class AppView(QWebEngineView): def __init__(self): QWebEngineView.__init__(self) self.ch = QWebChannel(self.page()) self.page().setWebChannel(self.ch) Then I…
Dre Westcook
  • 603
  • 6
  • 7
2
votes
1 answer

Python PyQT - Web Browser | Bookmarks

This is a repost of my previous post which I deleted. In the first post I asked if someone knows a way of creating bookmarks with PyQT5, however, originally, I did not post what issues I am having now, with my way. I have 3 toolbars, in my web…
Gromis
  • 127
  • 1
  • 20
2
votes
1 answer

CSS doesn't work in QWebEngineView.setHtml()

I have a string obtained from rendering a Jinja template. In the template I have the absolute path to the css file. For example: But, when I set the html in QWebEngineView…
Eduardo
  • 687
  • 1
  • 6
  • 24
2
votes
1 answer

How to include QwebEngineView without getting an error

Question is simple; I get an error "Unknown module QWebEngineView" when I write the line Qt += QWebEngineView in .pro file. How to get rid of this ? I have tried many solutions but still got the error when compiling. If you got a solution please…
2
votes
1 answer

QWebEngineView No Paste context menus on "input" fields in Qt 5.10.1

I have a problem with QWebEngineView in Qt 5.10.1. When i Right-Clicking on "input" fields in page, "Paste" action not shown in context menu. This is my code on contextMenuEvent: void WebView::contextMenuEvent(QContextMenuEvent *event) { …
Mattia
  • 133
  • 2
  • 8
2
votes
1 answer

Qt5 - QWebEngine CORS for own uri type

So, the basic gist is, I have javascript resources like https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js that I use in the QWebEngine. The intention is, that the program also works offline, so I made a QWebEngineUrlRequestInterceptor…
Berserker
  • 1,112
  • 10
  • 26
2
votes
1 answer

Qt WebEngineView not available in creator but available in designer

I am a bit puzzled here. In Qt Designer QWebEngineView is available but not in Qt Creator. The version of Qt is 5.10.1. in Windows 10. I want to create a Dialog box that loads a webpage inside. But I can't do it in Creator. And if I make it in…
azenkwed
  • 21
  • 2
2
votes
0 answers

Reduce size of pyqt5 html-viewer application build with pyinstaller

I have a small webview application: from PyQt5.QtWidgets import QMainWindow, QApplication from PyQt5.QtWebEngineWidgets import QWebEngineView import sys class MyWebViewer(QMainWindow): def __init__(self, *args, **kwargs): …
Mads M Pedersen
  • 579
  • 6
  • 16
2
votes
1 answer

Qt WebEngineView render empty image

I am using qt 5.6.2. I would like to take a screenshot on a web page. Here is the code I am using: #include #include int main(int argc, char *argv[]){ int left, top, width, height; …
sflee
  • 1,659
  • 5
  • 32
  • 63
2
votes
0 answers

How can I create audio visualizer for Qt WebEngineView?

There are some Qt audio visualizer example. But these are written for multimedia classes. How can I get audio of web view video (youtube, dailymotion etc..). And how can I 2d graphically visualize it at the same time? (If possible in qml)
ismail
  • 29
  • 3
2
votes
1 answer

How to save an HTML page to PDF in PyQt5

I'm trying to get some simple html to be saved onto a pdf document using PyQt5. The webpage renders properly, using the show() command I can get a window showing me the web content in question, however trying to print it to pdf only results in blank…
Berserker
  • 1,112
  • 10
  • 26