Questions tagged [qwebkit]

The QtWebKit module, part of the Qt framework, provides a web browser engine as well as classes to render and interact with web content.

150 questions
2
votes
2 answers

how to create QWebFrame instance

How can I create an instance of a QWebFrame? (In my case, I don't really need the QWebPage instance, a single QWebFrame would be enough.)
Albert
  • 65,406
  • 61
  • 242
  • 386
2
votes
2 answers

QWebFrame addToJavaScriptWindowObject() objects are undefined in Javascript

I have started to dig in to C++ and Qt again, and have been mucking around with the WebKit Javascript/Qt bindings. I've got all the moving parts working, with the exception of my QObject subclass being "undefined" on the Javascript side. Here's the…
Kyle
  • 1,054
  • 2
  • 14
  • 27
2
votes
1 answer

Get full href list from a QWebPage

I am trying to use a QWebPage (from QWebKit) to list all the href attributes from A tags with the full URL. At the moment, I do this: QWebElementCollection collection = webPage->mainFrame()->findAllElements("a"); foreach (QWebElement element,…
Tom Leese
  • 19,309
  • 12
  • 45
  • 70
2
votes
0 answers

QWebpage constructor segmentation fault

My problem is supposedly very similar to QWebPage segmentation fault but none of the suggested solutions there help me. I'm trying to run a unit test for a module of our console application that should render a web page to a PDF. As far as I…
Hurzelchen
  • 576
  • 3
  • 16
2
votes
1 answer

Minimal QWebChanel example not working

I have to port my code to QT 5.8. Unfortunately, existing code is not working any longer, as the interface for QWebEngine changed. After altering the easiest portions, by search and replace I was trapped in using the new QWebChannel class. I just…
Aleph0
  • 5,816
  • 4
  • 29
  • 80
2
votes
1 answer

PyQt5 QWebView: Load .html file that loads .js file

I am trying to show a leaflet map with QWebView (inspired from here). The structure of my folder looks as follows: webkit_leaflet/ ├── map.html ├── map.js └── map.py When I run map.py with all the content from map.html and map.js included, then the…
dliv
  • 687
  • 2
  • 12
  • 24
2
votes
1 answer

Is it possible to embed html with js into QwebKit

will I need to load java script objects into QwebKit when my application is loading I can use setHtml with the html and the java script string formatted but its very hard to Maintain. My question is can I embed the html and java script as resource…
user63898
  • 29,839
  • 85
  • 272
  • 514
2
votes
1 answer

how to load page in the background in Qwebkit?

im using Qwebkit to load heavy html page but mean while i don't what to show the user blank page , how can i in QT load the html page in the background and in the mean while show another HTML page in the same QwebKit widget ?
user63898
  • 29,839
  • 85
  • 272
  • 514
2
votes
4 answers

Qwebkit and flash player,why its not working in windows

im using Qwebkit and every time im loading youtube , its asking me to download the latest flash player plugin , even so i already installed the plugin and i can see youtube videos in firefox and explorer very well what is the deal with Qwebkit and…
user63898
  • 29,839
  • 85
  • 272
  • 514
2
votes
1 answer

Building PhantomJS 2.0 on Windows results in a strange error

I am trying to build PhantomJS 2.0 on Windows from the c:\fastio\phantomjs\phantomjs directory. For some reason, the build process fails after a while, with 2 errors (see error message below): 1) It tries to access…
Eugene Osovetsky
  • 6,443
  • 2
  • 38
  • 59
2
votes
1 answer

QT and QwebKit can i load javascript file as resource file and use it?

I wonder if I can load Javascript as a resource file to use in QwebKit? Well, it doesn't have to be resource file, I am just looking for a method to embed JS files into my application.
user63898
  • 29,839
  • 85
  • 272
  • 514
2
votes
2 answers

QtWebKit bridge: call JavaScript functions

I am writing a hybrid application with HTML interface and Python code. I can access Python functions via a shared object: pythonPart.py: class BO(QObject): def __init__(self, parent=None): super(BO, self).__init__(parent) …
waechtertroll
  • 607
  • 3
  • 17
2
votes
1 answer

Report with qweb template in Odoo version 8

I want to know about QWeb Report in Odoo 8. In version 6 and 7, I used jasper_report... it's OK for me. But... now version 8, I can't find jasper_report for this version. In version 8, they used qweb template report.. I don't know how to use. I want…
sharipha
  • 207
  • 1
  • 4
  • 12
2
votes
0 answers

Qt webkit - override device screen size

I want to emulate html rendering on a device mobile using Qt webkit integration. In chrome developer tools there is an option to do this which changes window.screen property according to user input. I searched for a solution for 2 days but it seems…
Emil Condrea
  • 9,705
  • 7
  • 33
  • 52
2
votes
1 answer

QWebView doesn't recognize TouchEvents correctly?

I can't find any reference to this error anywhere at all... I've got a widget with a QWebView up and I'm trying to interact with it with a Touchscreen. Every time I touch the screen, I get the message: Got touch without getting TouchBegin for id…
zaxvo
  • 186
  • 1
  • 10
1 2
3
9 10