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

QWebView on Qt4 and Qt5

I have a problem. I need to compile qt5 code on qt4. When I'm compiling it I have such error(on qt5 I haven't it): QWebView: No Such File Or Directory Here is my .pro file: QT += core gui xml webkitwidgets greaterThan(QT_MAJOR_VERSION, 4):…
user2090826
  • 145
  • 1
  • 2
  • 9
6
votes
1 answer

How to get pictures from QWebView

Does anybody know how to get a picture from qwebview? My situation is, there is no scope to use the image url and then a QNetworkRequest. I just need to 'extract' the image from the QWebview.
Dewsworld
  • 13,367
  • 23
  • 68
  • 104
5
votes
2 answers

Open External Browser from QWebView

I have a "start page" on my application that is just a QWebView widget that downloads a page from my server. When the user clicks on a link I'd like it to open in their default browser, not in the widget. Is there a way to do this with QWebView?…
Mark Beckwith
  • 1,942
  • 1
  • 18
  • 22
5
votes
2 answers

QWebView doesn't open links in new window and not start external application for handling pdf

I am using a QWebView in this way: QWebView *window = new QWebView(); window->setUrl(QString("my url")); window->show(); And it works. I can see the html page I want. The problem is this. By default if I "right click" on a link the action "Open in…
Luca
  • 845
  • 8
  • 8
5
votes
1 answer

Load a local html file into a QWebView in Python

Here's my problem: I want to load a local html file into a QWebView in Python. EDIT: I use PySide as a Qt package. My code: class myWindow(QWidget): def __init__(self, parent=None): self.view = QWebView(self) filepath =…
Stef
  • 51
  • 1
  • 1
  • 4
5
votes
2 answers

Setting useragent in QWebView

I have a QWebView, which works fine. Then, using code from spynner, I attempt to bind the useragent method to a custom method. This appears to work in spynner (with a QWebPage), but not here. Any help much appreciated. Code: def…
Matt
  • 51
  • 1
  • 3
5
votes
2 answers

how to scroll a page inside a qwebview?

I guess this should be a simple task: change a QWebView's content (it always contains several pages of stuff) then scroll the page back in the previous position: y =…
Giorgio Gelardi
  • 993
  • 4
  • 13
  • 29
5
votes
0 answers

Is Qt 5.5's QWebEngineView compatible with FramelessWindowHint?

I'm writing a cross-platform web browser in Qt, since it has built-in WebKit support via QWebView or the more up-to-date QWebEngineView. To get compact window chrome, I want to disable the native window title bar and border via…
Remy
  • 401
  • 2
  • 19
5
votes
1 answer

How to use a pre-populated sqlite database with qwebview?

Is there a way to use a pre-populated sqlite database with a qwebview? I have a javascript application that makes use of that database. I've enabled offline…
pr.nizar
  • 641
  • 6
  • 20
5
votes
0 answers

Howto use Qt QWebView::createWindow(QWebPage::WebWindowType type) correctly?

I have a serious problem with QWebView::createWindow() and how to handle creating new browser window. I have sub-classed QWebView as told by docs (MyWebView) and reimplemented it's createWindow() method and also it's…
user3059410
  • 93
  • 1
  • 8
5
votes
0 answers

4.6 QWebView memory leaks?

I wrote a quick test app to use the google analytics scripts in a client app. It works fine using QWebView and QWebFrame* pFrame = m_pWebView->page()->mainFrame(); pFrame->setContent(arrayHtml); pFrame->evaluateJavaScript(strScript); But no matter…
Steve
  • 59
  • 2
5
votes
3 answers

How to make a Qt interactive text editing widget

I want to develop an application with two main widgets one is a text editor and the other one is for graphic viewer. The basic idea is to let the user hover over any block of code in the text area and the associated part of the drawing gets…
Mahmoud Hassan
  • 598
  • 1
  • 3
  • 15
5
votes
1 answer

How i get the position of textcursor in QWebView Editable

I I have an editable QWebView, and would like to get the position (QPoint) of TextCursor. I searched but could only find the position of the cursor (mouse pointer) webview-> cursor.pos (); and this position is not what I want. Anyone have any…
FelipeMac
  • 71
  • 7
5
votes
1 answer

SpellChecker (speller) on webkit

I believe that there is no native functions in QtWebKit to use SpellChecker. Is there any way to get the fields (