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

Qt/webkit and flash

I have installed pyqt 4.8.1 on xp and Qt in package. I have a tag like But Qt/webkit doesn't show flash. (there is not problem with…
imez
  • 308
  • 1
  • 4
  • 14
7
votes
2 answers

Sending a custom header along with qtwebkit request

I'm doing some work with PyQt4 and QtWebKit, and in the web page request need to send a custom "Host" header along with the standard HTTP request. I'm not seeing any options for adding custom headers to the request, but this is all new to me so I…
lennysan
  • 1,330
  • 2
  • 13
  • 16
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
7
votes
3 answers

Qt: Force QWebView to click on a web element, even one not visible on the window

So let's say I'm trying to click a link in the QWebView, here is what I have: // extending QWebView void MyWebView::click(const QString &selectorQuery) { QWebElement el = this->page()->mainFrame()->findFirstElement(selectorQuery); if (!el) …
Pirate for Profit
  • 1,591
  • 2
  • 14
  • 16
7
votes
2 answers

how to get response in QtWebKit

im beginner with QtWebKit i build simple web frame that loaded page ( server side ) and when from this page i submit data i like to catch the response string from the server in the c++ side how can i do that ?
user63898
  • 29,839
  • 85
  • 272
  • 514
7
votes
1 answer

How to fire user-like event in QWebElement

Is it real to fire user-like events (like mouse click on link) for QWebElement? I.e., for instance, given QWebElement from current frame (using QWebKit) for html tag ("") I want programmatically click() this element. In more complicated…
Jamon
  • 126
  • 6
7
votes
1 answer

IP Aliasing with QWebView (Qt / C++)

Let’s see if you can shed some light on my problem. [C++ with Qt 5.2, using Qt Creator] Situation: I’ve got a PC with several local IP addresses assigned to the same interface (IP Aliases). The router has different configurations regarding…
lgvidal
  • 329
  • 2
  • 10
7
votes
4 answers

How to install a plugin for QtWebKit

I am running a Qt 4.5 commercial snapshot and want to use a plugin that I downloaded (it's a .so file) in my QWebView. Is there a specific location where I need to place this file? Can I grab it using the QWebPluginFactory?
Clayton
  • 6,089
  • 10
  • 44
  • 47
7
votes
1 answer

page-break-inside doesn't work in table cells with rowSpan?

I want to make PDF rendering of my big report table. But it seems that phantomjs doesn't support the rowSpan attribute. Here is the example: phantomjs rasterize.js "http://fiddle.jshell.net/eric777/SLtGa/show/" report.pdf A4 Here is the…
Erik
  • 14,060
  • 49
  • 132
  • 218
7
votes
1 answer

Example code for a simple web page browser using WebKit QT in C++

I have never used Qt and WebKit and now have a need to create a simple single web page browser using the Qt WebKit module. The application that I'm looking to create needs to have a plain window that displays a web page URL passed in via command…
Chimera
  • 5,884
  • 7
  • 49
  • 81
7
votes
1 answer

Suppressing SSL errors

I want to be able to read the headers sent back from a webpage in SSL mode. My Qt app however can't reach the webpage because it's in SSL mode I am gathering? Normal webview browsing in SSL is possible in my app using this…
Kal
  • 2,239
  • 6
  • 36
  • 74
6
votes
2 answers

How to get first redirect (301 or 302) event in QtWebKit

we are using QtWebKit 4.7 and want to know when a frame load does a redirect. At the moment we are counting the outgoing requests within a subclass of the QNetworkAccessManager, where we do overwrite createRequest. This works in most cases fine, but…
Dag
  • 10,079
  • 8
  • 51
  • 74
6
votes
5 answers

How to get Javascript in a QWebView to create new instances of C++ based classes?

I've successfully added an C++ object to a QWebFrame with addToJavaScriptWindowObject, and can call a slot on that object from javascript. But what I really want to do is have one of those slots return a new object. For example, I have a slot like…
Paul Dixon
  • 295,876
  • 54
  • 310
  • 348
6
votes
2 answers

Override HTTP Error page in QtWebkit

I would like to display an error page in a QWebView. For example if the server returns a 404 Error the QWebView should display a its own custom 404 Error instead of the one sent from the server. I use the QWebPage::extension to handle error…
Pascal
  • 423
  • 4
  • 13
1 2
3
43 44