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
5
votes
2 answers

Qt Webengine Render to Print

Is there any way to render HTML/SVG to printer, PDF, and raster images with QtWebEngine? We want to switch from WebKit to WebEngine, so using WebKit's QWebView is not an option anymore.
user5647258
5
votes
2 answers

How to get website content from QWebEnginePage?

I installed the newest version of Qt (on Webkit, Qt5.2 had WTFcrash). I try to get content of my website when the page is loaded (and it is): QString sHtml; view.page()->toHtml([&](const QString& result){sHtml = result;qDebug() << result;}); But…
kajojeq
  • 886
  • 9
  • 27
5
votes
2 answers

QWebEngineView crashes on load() or page() method

I'm working on porting a Qt 5.5, QWebView project to Qt 5.6 (beta), QWebEngine. I've gone through the porting guide here. My code looks like this: .h file defines _view like so: QWebEngineView* _view; and the .cpp constructor (class inherits from…
Vern Jensen
  • 3,449
  • 6
  • 42
  • 59
5
votes
2 answers

Clear cookies in QtWebEngine

I'm upgrading an application from QtWebKit to QtWebEngine. The application relied on that WebKit didn't keep cookies after closing the app but WebEngine seems to keep them by default. I'm not familiar with Qt at all. I've been browsing the…
toster-cx
  • 2,287
  • 1
  • 26
  • 32
5
votes
3 answers

QtWebEngine: "Not allowed to load local resource" for iframe, how to disable web security?

I'm porting my application from WebKit to WebEngine (seems that one is much better for rendering angular-basad html). I faced with problem that i can't enable QtWebEngine to load local iframe, despite the fact that i've setup all possible settings…
Nick Zinberg
  • 101
  • 1
  • 5
5
votes
1 answer

How to build Qt 5.5 QtWebEngine on Windows & MSVC 2015

Has anyone successfully built Qt's WebEngine / QtWebEngine / QWebEngine on Windows using Microsoft Visual Studio C++ 2015? What prerequisites are necessary? I managed to build Qt itself, but QtWebEngine was skipped, so I tried nmake…
Arc
  • 11,143
  • 4
  • 52
  • 75
5
votes
1 answer

How to invoke C++/Qt function from Javascript in QWebengine?

I have looked the Qt example about QWebChannel . But its a C/S app. BTW it doesn't work on my computer(OS X 10.10.5, Qt5.5). All my HTML contents come from local disk. I don't think it needs socket things. new…
Hunker
  • 97
  • 9
5
votes
1 answer

Render web content offscreen using QtWebEngine

I am trying to port an application that uses QtWebKit to render web content over to one that uses QtWebEngine. I am limited what I can change architecturally so I have to stick with the current approach of rendering the page, capturing to a memory…
speedwell
  • 635
  • 4
  • 9
  • 24
4
votes
1 answer

Why is there no QtWebEngine in the Qt6?

Why there is no QtWebEngine in the Qt6? Is it depricated? Should I use a new widget?
mh taqia
  • 3,506
  • 1
  • 24
  • 35
4
votes
1 answer

How to enable incognito mode in PyQtWebEngine?

I am making a web browser using PyQtWebEngine but how will I give the feature of incognito mode in it.
Saptak Bhoumik
  • 127
  • 3
  • 9
4
votes
1 answer

QWebEngineView fails to render PDF embedded in HTML

I'm writing a Python script for an MDI-based PyQt5 application, where the windows use the new QWebEngineView to render some HTML that embeds a PDF in an iFrame. The HTML is a custom-generated string and the PDF is a local file. The HTML is a locally…
David Stein
  • 866
  • 7
  • 21
4
votes
1 answer

Warnings when instantiating QWebChannel object in javascript

I have a widget which creates a google maps instance using QWebChannel. When instantiating the QWebChannel within javascript several warnings appear: Property 'accessibleName'' of object 'MapWindow' has no notify signal and is not constant, value…
Evan Brittain
  • 547
  • 5
  • 15
4
votes
1 answer

Building qtwebengine of Qt 5.12.4 on msvc2017 to enable proprietary codecs

I want to build Qt 5.12.4 on Windows 10 to have qtwebengine with proprietary codec for x86 applications but I get the 64-bit cross-building or native toolchain is required error as follows by running qmake .\qtwebengine --…
HRZ
  • 98
  • 7
4
votes
1 answer

How to download csv file with QWebEngineView and QUrl

I'm building a program which uses QWebEngineView and QUrl to display a website in my PyQt5 app (running on Windows 10). However, I now want to be able to download a CSV file from the same website, but being a noob I can't seem to figure out…
codeacker
  • 85
  • 1
  • 11
4
votes
0 answers

Qt video playback with libmpv makes QtWebEngine jquery content unsmooth - Ubuntu

I have a project that uses libmpv with the opengl widget (as per the examples that come with libmpv) along with a QtWebEngine widget that displays information, graphics and animations (a scrolling ticker for example). I found that of the video…
themusicalduck
  • 105
  • 1
  • 7