Questions tagged [qtwebkit]

QtWebKit provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application.

QtWebKit provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. It provides facilities for rendering of HyperText Markup Language (HTML), Extensible HyperText Markup Language (XHTML) and Scalable Vector Graphics (SVG) documents, styled using Cascading Style Sheets (CSS) and scripted with JavaScript.

In Qt5 Qt WebKit Widgets provides a Web browser engine that makes it easy to embed content from the World Wide Web into your Qt application. At the same time Web content can be enhanced with native controls.

QtWebKit is based on the Open Source WebKit engine.

QtWebKit is marked as deprecated in Qt 5.5 and considered for removal in future releases of Qt. It is advised to use Qt WebEngine for development of new applications.

646 questions
6
votes
1 answer

Why is QTWebKit so much behind Google Chrome (Chromium)

I have used the newest release of QtWebKit, that is version 2.2. But I must say it is nowhere near the current release of chromium. It lacks many CSS properties, it lacks anti aliasing, it renders rotated pictures ugly, the selection of text is…
Rok Kralj
  • 46,826
  • 10
  • 71
  • 80
6
votes
1 answer

Capture server response with QWebEngineView

I'm trying to create a Dialog in Qt which loads a URL (which I do not want to expose to the end-user, hence a Dialog). Once the user has entered their credentials on the page, the server returns a redirect URL which I want to capture. How can I do…
f1zz0_13
  • 495
  • 2
  • 8
  • 19
6
votes
1 answer

QWebView::settings()->setUserStyleSheetUrl() from QtWebKit to QtWebEngine?

I'm upgrading my code from Qt 5.5 to Qt 5.6, but I didn't find a way to port the following code: QWebEngineView *qwebview = new…
6
votes
2 answers

QtWebkit: console application

I am new to Qt. I am building a console application and I need to process lot of real world html pages. QtWebkit comes as an easy choice because of clearly cut APIs and easy availability. I checked out the docs and they say that I can load pages by…
Xolve
  • 22,298
  • 21
  • 77
  • 125
6
votes
2 answers

How to Create a webservice by Qt

I am looking for a tool or plugin that help me to create web service as DOT NET does for Linux.
Behrouz.M
  • 3,445
  • 6
  • 37
  • 64
6
votes
2 answers

Expose C++ object to Javascript in Qt

Is there any way I can expose a C++ object/function to JavaScript running inside the QtWebKit browser in Qt? It's possible to expose ActionScript objects to JS code running inside the WebKit browser in Adobe AIR - I'm looking for similar…
BlueSilver
  • 1,052
  • 2
  • 10
  • 25
6
votes
1 answer

How to intercept AJAX-Requests within QtWebKit?

I want to intercept, inspect and (if needed) reject AJAX-Requests based on the Fingerprint of the SSL-Certificate. I use the QNetworkAccessManager::createRequest(...) function to issue requests. Everything works fine when I use QWebFrame::load(...).…
Senči
  • 911
  • 2
  • 10
  • 25
6
votes
3 answers

How to render PDF using pdf.js viewer in PyQt?

I have tried adding the pdf.js viewer files in my project and it works in browsers like Chrome, Mozilla, Safari, etc, but it's not loading some pages in node-webkit and PyQt webkit. I am trying to load the file using an iframe, like this:
Kantanand US
  • 108
  • 1
  • 1
  • 7
6
votes
1 answer

Serving resource to QWebView of PyQT5

How can serve resource (files like html, css, js, fonts) for a desktop app to QWebView (in PyQT5)? What I want is: If possible handling requested resource by Webkit engine of PyQT5 with a custom scheme like say custom://app/jquery.js and returning…
Kaveh Shahbazian
  • 13,088
  • 13
  • 80
  • 139
6
votes
1 answer

Qt4: How to call JavaScript functions in a page from C++ via QtWebkit?

I'm trying to write a simple log viewer using Qt4's WebKit port/implementation. My HTML code looks like this: http://pastie.org/613296 More specifically, I'm trying to find out how to call the add_message() function which is defined in the