Questions tagged [qwebview]

The QWebView class is the main widget component of the Qt WebKit web browsing module. It can be used in various applications to display web content live from the Internet.

The QWebView class provides a widget that is used to view and edit web documents. QWebView is the main widget component of Qt's QtWebKit web browsing module. It can be used in various applications to display web content live from the Internet. QtWebKit is based on the Open Source WebKit engine.

QWebView is the main widget component of the Qt WebKit web browsing module. It can be used in various applications to display web content live from the Internet.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

540 questions
7
votes
3 answers

QWebview/webkit disable selection of text

I have a QWebView which loads some webpage, but the problem when mouse is pressed and dragged it selectes everything which comes in its way. Is there any way I can get rid of this?? I dont want text and other items to be selected., If I restrict…
user269062
  • 101
  • 1
  • 3
7
votes
3 answers

Standard windows open/save dialog is broken by WebKit

Our team is developing a complex application using Qt 4.7.4. One of the key functions we provide requires HTML+JS content rendered by QWebBrowser. The problem is that loading of some pages leads to the broken open/save dialogs: The dialog still…
Nipheris
  • 487
  • 5
  • 12
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
1 answer

How can I read content (http response body) from a QNetworkReply

I'm using qt5.3 and I googled a lot before I post. I want to read data from QNetworkReply. I have a QWebView and I also need the http response to be read by QWebView to display the webpage. What I need is just to log the web content or whatever…
K--
  • 659
  • 1
  • 7
  • 18
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
3 answers

Qt: Open links with target in default browser, without leaking memory

Searching through the Internet, I've come across so many ways, mostly nonfunctional, nonspecific, or partially functional, to do various things with QWebView and opening URLs. After much swearing and cursing, I've managed to get an example to do…
OmnipotentEntity
  • 16,531
  • 6
  • 62
  • 96
7
votes
4 answers

Error: Qt5 Video render error code 80040218

When running an application in Qt5 made ​​using the QWebView, I accessed a page with a video player in HTML5, but the video does not play and qt/directshow shows the following error: DirectShowPlayerService::doRender: Unresolved error code…
Protomen
  • 9,471
  • 9
  • 57
  • 124
7
votes
1 answer

Print error on page (qtWebkit)

Bug in Qt5.2.1: The only problem was corrected in QPrintPreviewDialog but when the print is printed on paper the failure still exists. With QPrintPreviewDialog pages work perfect, but on "paper" (printed in paper) from second page (in other words…
Protomen
  • 9,471
  • 9
  • 57
  • 124
6
votes
1 answer

QTextBrowser or QWebView?

I need to render some HTML content (created by the application) and I'm wondering whether I should use QTextBrowser or QWebView. Although they seem quite similar, the doc doesn't discuss the differences between then. I guess QWebView is almost a…
laurent
  • 88,262
  • 77
  • 290
  • 428
6
votes
2 answers

QWebView doesn't load any external resources if it loads a html-file from qresources

As described in the title my problem is that qwebview doesn't load a html file correctly if it resides in my resources. It loads it perfectly if I load it from outside of the resources as normal local file. But this is not an option for me. I would…
domachine
  • 1,119
  • 1
  • 12
  • 20
6
votes
2 answers

How to display simple html file in Qt

I'm looking for the easiest way to display a simple html file (just a long html-formatted text) inside the Qt dialog. Links, if any, should be opened in the external default system browser.
paws
  • 197
  • 1
  • 2
  • 13
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
0 answers

Bokeh tools not working in QWebView

Good afternoon [First time to post on stackoverflow after years of reading. Exciting!] I use bokeh to generate html code that I feed into a QWebView in a very simple PyQt4 GUI. The standard tools on top of the bokeh chart do not work in the…
Pythonic
  • 2,091
  • 3
  • 21
  • 34
6
votes
1 answer

Qt 4.6 Adding objects and sub-objects to QWebView window object (C++ & Javascript)

I am working with Qt's QWebView, and have been finding lots of great uses for adding to the webkit window object. One thing I would like to do is nested objects... for instance: in Javascript I can... var api = new Object; api.os = new…
Cor
  • 61
  • 1
  • 4
6
votes
2 answers

QWebView vs QWebPage

The documentation (in PyQt at least) for QWebView says: 'The QWebView class provides a widget that is used to view and edit web documents', whereas QWebPage says: 'The QWebPage class provides an object to view and edit web documents'. Given that…
ChrisW
  • 4,970
  • 7
  • 55
  • 92
1
2
3
35 36