Questions tagged [qtwebengine]

QtWebEngine integrates the chromium rendering engine into Qt.

QtWebEngine integrates the Chromium rendering engine into Qt. Since QtWebKit was marked as deprecated in Qt 5.5, QtWebEngine is now the main web platform for Qt applications development.

QtWebEngine is only available for Qt 5.4 and newer. The list of supported platforms is yet restricted.

Qt official documentation is here

Project homepage

485 questions
9
votes
2 answers

Using QWebEngine to render an image

I'm looking to replace QWebKit with QWebEngine in my headless renderer. I initialise the page with load() and connect a slot to loadFinished() to generate the final .PNG image. This used to work fine with WebKit but fails with QWebEngine. Code is…
Richard Adams
  • 591
  • 1
  • 9
  • 23
9
votes
2 answers

Transparent Background in QWebEnginePage

We are trying to port some application from Qt 4 to Qt 5.4. The Qt 5.4 has a new web engine. We used to make the background of QWebView and QWebPage to be transparent: view = new QWebView(this); QPalette palette =…
TerryLu
  • 136
  • 1
  • 5
8
votes
2 answers

Qt QWebEngine Remote Debugging: Chrome developer tools no longer work

Recently after some software updates (automated Windows 10 update, and possibly a Chrome auto-update) the developer tools for remote debugging from Qt's QWebEngine stopped working. The JavaScript console shows this: Uncaught TypeError:…
Vern Jensen
  • 3,449
  • 6
  • 42
  • 59
8
votes
0 answers

CORS problem with QWebEngine: are there limitation regarding the possible `Origin` values?

We maintain an application whose UI contains a QWebEngineView. The pages displayed in this view are taken from a local resource bundle, i.e. urls like qrc://mypage.html. Some JS from the page does window.fetch(https://some.thi.ng) some url on…
Ad N
  • 7,930
  • 6
  • 36
  • 80
8
votes
3 answers

How to compile Qt webengine (5.11) on Windows with proprietary codecs

I have a lot of trouble compiling Qt webengine to enable proprietary codecs, documentation is not very clear. I followed others instructions on stackoverflow but it doesn't work. I got error like: Project ERROR: Cannot run compiler 'cl'.…
Dardan Iljazi
  • 747
  • 1
  • 9
  • 16
8
votes
0 answers

How to install QtWebEngine on Ubuntu 14.04 as dev dependency?

I have an app that I made with Qt and it can be run without installing Qt Creator by just installing the dev dependencies on Linux such as: sudo apt-get install qt5-default sudo apt-get install libqt5webkit5-dev sudo apt-get install…
Namox9001
  • 103
  • 3
  • 8
7
votes
3 answers

Python3: ImportError: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found

I created a Window on Qt with Qt Designer and when I launch that app - I get ImportError. It feels like that library doesn't installed in my system. But the preview works in Qt Designer. Full code of design file: # -*- coding: utf-8 -*- # Form…
Okno
  • 71
  • 1
  • 1
  • 4
7
votes
1 answer

How To Build Qt WebEngine for PyQt5?

Qt WebEngine This link show python wrapper for Qt WebEngine . Please can canyone tell me how can i add this in pyqt5 environment? Thanks!!!
raman.pndy
  • 117
  • 1
  • 6
7
votes
3 answers

Running QtWebEngine with C++

I'm trying out Qt for the first time and want to create a very basic application which loads a website. I want to use Qt WebEngine. This is my helloworld.pro: TEMPLATE = app TARGET = hello DEPENDPATH += . INCLUDEPATH += . QT +=…
Michael Nielsen
  • 1,194
  • 3
  • 22
  • 37
7
votes
2 answers

How can I install QtWebEngine on Ubuntu

When a QML program (e.g. Ethereum, installed from the PPA in this case) tries to import QtWebEngine 1.0 import QtWebEngine.experimental 1.0 Then I get these errors file:////usr/share/mist/qml/views/browser.qml:5 module "QtWebEngine" is not…
spraff
  • 32,570
  • 22
  • 121
  • 229
7
votes
1 answer

Expose C++ object to Javascript in Qt with QtWebEngine

With QtWebkit it is possible to expose C++ objects to Javascript via QWebFrame::addToJavaScriptWindowObject as described in https://stackoverflow.com/a/20685002/595937 Can the same thing be accomplished in Qt 5.4 using QtWebEngine?
ljcundiff
  • 1,159
  • 1
  • 9
  • 14
6
votes
3 answers

How to determine which chromium version is used by QtWebEngine in Qt 5 at run-time?

I couldn't find any function in Qt 5 to determine which chromium version is used by QtWebEngine. I don't want to hard-code the chromium version in my code because I frequently update my application and the chromium version is usually changed in each…
A.Danesh
  • 844
  • 11
  • 40
6
votes
2 answers

Taking a screenshot of a web page in PyQt5

I would like to use PyQt5 to take a screenshot of a webpage. (A full webpage, including the stuff a user wouldn't see unless they scrolled down.) Supposedly, it is possible to do this in PyQt5 using QtWebEngine. How would you do it though? I…
std_answ
  • 1,039
  • 1
  • 11
  • 17
6
votes
1 answer

Is it possible to render QWebEnginePage/QWebEngineView offscreen?

I have this partially working, but I'm facing several difficulties: 1) It appears that QWebEnginePage requires a QWebEngineView. (see setView() method here: https://code.woboq.org/qt5/qtwebengine/src/webenginewidgets/api/qwebenginepage.cpp.html) 2)…
mpr
  • 3,250
  • 26
  • 44
6
votes
0 answers

How to use QWebEngine to intercept HTML requests?

In QtWebKit we can use QNetworkAccessManager, like: class NetworkAccessManager : public QNetworkAccessManager { public: explicit NetworkAccessManager(QNetworkAccessManager *manager, QObject *parent); protected: QNetworkReply *…
C.Hao
  • 61
  • 4
1
2
3
32 33