The QtWebKit module, part of the Qt framework, provides a web browser engine as well as classes to render and interact with web content.
Questions tagged [qwebkit]
150 questions
1
vote
1 answer
How to make QWebView load external JPG resources?
QWebView for some weird reason doesn't want to load JPG images. How do I fix it?

Daniel
- 95
- 1
- 4
1
vote
1 answer
QWebKit how running js on page from python
How can I inject JavaScript into a page via QWebKit?
import sys
from PyQt5.QtCore import *
from PyQt5.QtWebKitWidgets import *
from PyQt5.QtWidgets import QApplication
js = "alert('test');"
def function():
app = QApplication(sys.argv)
…

Kap
- 35
- 4
1
vote
1 answer
QWebPage, getting the mime type
I am wondering how I can get the mime-type of the current page using a QWebPage. Also, if possible, I would like to be able to do this using the HEAD request so I know not to download the whole page if it's not the correct mime-type. Any ideas?

Tom Leese
- 19,309
- 12
- 45
- 70
1
vote
1 answer
How to keep current URL updated in QWebKit browser
I am making a very simple browser with a search box using PyQt5 WebKit. This is the code I'm using:
import sys
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox,…

Sid
- 2,174
- 1
- 13
- 29
1
vote
0 answers
QtWebKit not displaying css/xsl
I cannot get qtwebkit to display css/xsl. I have tried both and they work in web browsers, but not in the qtwebkit. Is there a setting I need to enable to apply a stylesheet, or is this a downfall of the qtwebkit?
EDIT: XSLT support is disabled in…

JonnyCplusplus
- 881
- 3
- 12
- 22
1
vote
2 answers
QWebView for running javascript (D3) in a desktop application - slow to reload when HTML changes
I am using a QWebView to display plots using javascript and D3. There is a combobox to select different datasets. Each time a new dataset is selected, some calculations are done, then the javascript is reinitialized with the new data and set as an…

confused_programmer
- 93
- 7
1
vote
0 answers
QtWebKit support
I'm building an embedded program to mini6410, the responsible provided me with qt 4.7 ready to be used to the cross-compilation. I tried to use more recent version of qt without success, so i'm stuck with webkit 2.0
The problem is that I couldn't…
user8057102
1
vote
2 answers
Can i open more then one instance of QWebView that will mimic opening N browsers?
Can i make Qwebkit to open ( in tabs ) more then one QwebView or maybe something else.
that each will hold its own cookies and will open its own session .
i like to be able in the end open multiple emails and view them in one browser

user63898
- 29,839
- 85
- 272
- 514
1
vote
1 answer
How to get the html dom of a webpage and its frames
I would like to get the DOM of a website after js execution.
I would also like to get all the content of the iframes in the website, similarly to what I have in Google Chrome's Inspect Element feature.
This is my code:
import sys
from PyQt4…

yuval
- 2,848
- 4
- 31
- 51
1
vote
1 answer
Qt can I drag and drop from widget to Qwebkit?
I'm developing simple HTML editor and I like to be able to drag and drop from a button that for example represent HTML text line and in the Qwebkit the HTML text line will be created does Qt support such action?
How should I approach such thing?

user63898
- 29,839
- 85
- 272
- 514
1
vote
1 answer
QWebKit for android
Someone know a project or some other way to port QWebKit component to work on android? It's driving me mad looking for a solution to this problem. Without QWebKit component I can not port my app to work on android. As alternative another kind of…

Suppaman
- 151
- 1
- 12
1
vote
1 answer
Python/PyQt reopening QWebView shows blank page
I have this problem with QWebView not showing anything after I rerun QAplication. This small snippet displys the problem:
import sys
from PyQt4 import QtGui, QtWebKit, QtCore
app = QtGui.QApplication(sys.argv)
while True:
browser =…

etsinko
- 11
- 2
1
vote
1 answer
How to insert last input as first table record in QwebKit
I'm using Qwebkit and I like to be able to insert into html table each data input that comes last
as first record (...my data ... ) in to the table.
Here is my code this is only example…

user63898
- 29,839
- 85
- 272
- 514
1
vote
1 answer
Error: Internal C++ object (PySide.QtWebKit.QWebFrame) already deleted; but I'm saving it as an attribute to avoid this exact issue
I'm working on a project where I use a modified QWebView. I'm getting this error:
Traceback (most recent call last):
File "/home/jorge/coders/universal-scraper/src/customwebview.py", line 63, in mouseMoveEvent
hittestresult =…

shackra
- 277
- 3
- 16
- 56
1
vote
1 answer
How to modify the -webkit-scrollbar styles in a QWebView
Webkit provides special css properties for styling scrollbars, for example:
::-webkit-scrollbar-track {
background-color:white;
}
Normally I'd put these inside a