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
18
votes
3 answers

QT5 QWebView linker errors

Right now I'm just trying to get 'www.google.com' to load in a webview when a button is pressed. After I added the webview in the designer the linker starts going crazy. I'm using QT Creater 2.6.1 with QT5 on Windows 7. I added the QT += 'webkit…
Bobdabear
  • 335
  • 1
  • 3
  • 12
16
votes
3 answers

Qt WebKit and Permanent Cookies

I have a mainwindow, in it, I have a single QWebView. I want to make a certain website (www.kdkdkkd.com for instance) cookies permanent, so each time a user closes and repopens the browser he doesnt need to log in again. Thanks,
snoofkin
  • 8,725
  • 14
  • 49
  • 86
13
votes
1 answer

Is it possible to call a C++ function from JavaScript in a QWebView?

I have a web page loaded in a QWebView. In there, I would like to have JavaScript call a function of my application. That function would then returns some strings that JavaScript would dynamically display. Can it be done using QWebView? Basically,…
laurent
  • 88,262
  • 77
  • 290
  • 428
12
votes
3 answers

How to send artificial QKeyEvent to QWebEngineView?

Context: I'm creating a small web browser with a custom on-screen keyboard. It was working almost fine with Qt WebKit (QWeb* classes) but there were crashes attributed to bugs in WebKit... which won't be fixed after Qt 5.4.0 since they're moving to…
cJ Zougloub
  • 1,484
  • 10
  • 19
12
votes
1 answer

How to display html using QWebView. Python?

How to display webpage in HTML format in console. import sys from PyQt4.QtGui import QApplication from PyQt4.QtCore import QUrl from PyQt4.QtWebKit import QWebView app = QApplication(sys.argv) view =…
Vor
  • 33,215
  • 43
  • 135
  • 193
11
votes
4 answers

Qt QWEBview JavaScript callback

How to pass a function "pointer" from JavaScript to a slot? in JavaScript: function f1() { alert("f1"); } qtclass.submit(f1); and in Qt: public slots: void submit(void * ptr) { (void)ptr; } I need the "f1", function to get…
user457015
  • 960
  • 4
  • 14
  • 33
11
votes
3 answers

QML WebView Camera Permission

I'm working on a mobile app that has a video chat feature. I found a nice javascript library for webrtc, which seems to load just fine in QWebView but I need to give it permission to access the camera and microphone and I can't figure out how to do…
Derek Nowicki
  • 283
  • 5
  • 16
10
votes
2 answers

How do I display local HTML in QWebview?

I suspect this is so basic that no one bothered to document it. I want to write an HTML file from my program, and then load that file into a QWebview object. When I have QtCreator open, I can navigate to the file in the URL block on the right and it…
RuQu
  • 243
  • 3
  • 4
  • 9
10
votes
3 answers

How to list loaded resources with Selenium/PhantomJS?

I want to load a webpage and list all loaded resources (javascript/images/css) for that page. I use this code to load the page: from selenium import webdriver driver = webdriver.PhantomJS() driver.get('http://example.com') The code above works…
flowfree
  • 16,356
  • 12
  • 52
  • 76
9
votes
5 answers

Auto play video in webview

I am new in android and I am displaying a news link in a webview. News link contains a video. Problem is that, After opening a link i have to click on video then video is playing but i want that video should be play automatically. Thanks in…
Nikita Gupta
  • 93
  • 1
  • 1
  • 5
9
votes
1 answer

Crossplatform webview in Qt5.6

I am using Qt 5.6 with MinGW on Windows 10 64x for developing a cross platform app (desktop + mobile). In Qt 5.5, I could use WebKit to make a cross platform app for showing web pages in my app, and I could use it on Windows, Android, iOs... Today,…
HadiAbbasi
  • 93
  • 1
  • 7
9
votes
1 answer

Is there any solution for the QtWebKit memory leak?

Memory size of QtWebKit process increases with every new page load. Cleaning memory cache doesn't help. Does anyone know how to solve it? This simple example crashes after some time of operation: from PyQt5.QtCore import QUrl from PyQt5.QtWidgets…
Mikhail Gerasimov
  • 36,989
  • 16
  • 116
  • 159
9
votes
1 answer

Can QWebView load images from Qt resource files?

I've bundled some HTML and PNGs in my Qt app's resources file (for the help system). Unfortunately I can't find a way for the HTML to display images. I've tried various combinations of the QWebView's base URL, and different URLs for the tag…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
8
votes
3 answers

Filling out a form using PyQt and QWebview

I would like to use PyQt/QWebview to 1) load a specific url, 2) enter information into a form, 3) click buttons/links. Mechanize does not work because I need an actual browser. Here's my code: import sys from PyQt4.QtCore import * from PyQt4.QtGui…
user1137778
  • 1,111
  • 3
  • 14
  • 26
7
votes
2 answers

Qt WebView - intercept loading of JS/CSS Libraries to load local ones

I've been looking for a while through documentation to find a way to accomplish this and haven't been successful yet. The basic idea is, that I have a piece of html that I load through Qt's webview. The same content can be exported to a single html…
Berserker
  • 1,112
  • 10
  • 26
1
2 3
35 36