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
32
votes
3 answers

QWebView or QWebEngineView

Are there any functional differences between QWebView and QWebEngineView? If I understand correctly, QWebView is webkit, while QWebEngineView is blink. Are there any differences to the programmer? Does one offer more customization of look & feel…
graywolf
  • 7,092
  • 7
  • 53
  • 77
31
votes
1 answer

Handling Downloads in QtWebEngine

We are currently migrating a project from the QtWebkit to the QWebEngine. However, handling downloads is causing a bit of a headache. Previously we handled this using the QWebPage::unsupportedContent signal, like so: QWebPage* webPage = new…
StickyCube
  • 1,721
  • 2
  • 17
  • 22
27
votes
6 answers

QtWebEngine debugging

Recently Qt introduced the QtWebEngine module. Is there a way to invoke developer tools and debug JavaScript code inside QWebEngineView? It was possible with QWebView using page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled,…
Roman Kolesnikov
  • 11,777
  • 11
  • 44
  • 67
21
votes
4 answers

How to use Qt WebEngine and QWebChannel?

I'm using the new WebEngine to play around and learn. I've been trying to find some similar methods found using Qt WebKit: addToJavaScriptWindowObject() I found that using Qt WebEngine, I have to use the QWebChannel to register functions to the…
user1185305
  • 875
  • 2
  • 15
  • 26
12
votes
3 answers

Protobuf version conflicts with Qt

I'm trying to use protobufs v 3.3.2 with Qt 5.9.1. This works with some Qt applications, but only if they are command line programs. Once I create a GUI application with Qt and protobufs, I get this error: [libprotobuf FATAL …
Matthew Kraus
  • 6,660
  • 5
  • 24
  • 31
12
votes
1 answer

QByteArray seen as a String in Javascript via QWebChannel

Migrating from QtWebKit to QtWebEngine, using QWebChannel. I have an invokable function that sends a QVariant Object to the Javascript, which is seen as a JSON object. So a QString becomes a string, a QInt an int, etc. Using QtWebKit without…
hereismass
  • 223
  • 1
  • 14
12
votes
2 answers

Remove ScrollBars from QWebEngineView or QWebEnginePage

Is there a way to remove scrollbars from QWebEngineView or can i somehow get access to it's ScrollArea? With webkit it was as easy as WebView->page()->setScrollBarPolicy(Qt::Vertical,…
Shf
  • 3,463
  • 2
  • 26
  • 42
12
votes
1 answer

QT QWebEnginePage::setWebChannel() transport object

I'm using the QT WebEngine framework to display web pages. I'm injecting javascript into a page when it loads, and want to allow the javascript to be able to access a QT object. Apparently, to do this a QWebChannel must exist that establishes some…
mathieujofis
  • 349
  • 3
  • 16
12
votes
3 answers

How to send artificial QKeyEvent to QWebEngineView?

Context: I'm creating a small web browser with a custom on-screen keyboard. It was working almost fine with Qt WebKit (QWeb* classes) but there were crashes attributed to bugs in WebKit... which won't be fixed after Qt 5.4.0 since they're moving to…
cJ Zougloub
  • 1,484
  • 10
  • 19
11
votes
3 answers

QtWebEngine - synchronously execute JavaScript to read function result

I have the following method in one of my C++ classes (using QtWebEngine): QString get() { QString result; view->page()->runJavaScript("test();", [this](const QVariant &v) { result = v.toString(); …
zupazt3
  • 966
  • 9
  • 30
10
votes
2 answers

Qt WebEngine seems to be initialized

When I run my Qt application I get the message Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication. The app runs fine regardless of…
Mitch
  • 3,342
  • 2
  • 21
  • 31
10
votes
1 answer

How to build qtwebengine from Qt 5.5 git source

I have followed the instructions on this page Building Qt 5 from Git to build Qt 5.5 from source. The source is in "~/qt5_source_built/qt5" and the Qt 5.5 built system is in "~/qt5_source_built/qt5.5-build". I have used the following config options…
user1129812
  • 2,859
  • 8
  • 32
  • 45
9
votes
1 answer

How to load Chrome Extensions in QtWebengine

Is there a way by which we can load/install chrome extension in QtWebengine based browsers.
Anmol Gautam
  • 949
  • 1
  • 12
  • 27
9
votes
1 answer

Crossplatform webview in Qt5.6

I am using Qt 5.6 with MinGW on Windows 10 64x for developing a cross platform app (desktop + mobile). In Qt 5.5, I could use WebKit to make a cross platform app for showing web pages in my app, and I could use it on Windows, Android, iOs... Today,…
HadiAbbasi
  • 93
  • 1
  • 7
9
votes
1 answer

How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source

Environment Debian GNU/Linux 7.8 (wheezy) Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Raspberry Pi 2 Yocto Poky Qt5 My goal is to run Chromium layout web engine on the RPi2 I want to be able to run…
zabumba
  • 12,172
  • 16
  • 72
  • 129
1
2 3
32 33