qtwebkit

PyQt4.QtWebKit.QWebFrame missing findAllElements() method on debian

I recompiled PyQt4 from source, but the issue still exists. On another ArchLinux system, it works well. Can someone help me? Thanks! on Debian: >>> import PyQt4.QtWebKit >>> dir(PyQt4.QtWebKit.QWebFrame.findAllElements) Traceback (most recent call last): File "", line 1, in AttributeError: type object 'QWebFrame' has no attribute ...

Does the QtWebKit module within Qt support ActiveX controls?

I'm attempting to use QtWebKit (specifically, a QWebView widget) to display a web page that contains an ActiveX control. On my first attempt, the ActiveX control doesn't appear to be loading. I'm wondering if QtWebKit actually supports ActiveX controls, and I can't immediately find any documentation that gives an answer one way or anot...

QWebView loadFinished signal catching all responses even from different

Hello all im using one main QNetworkAccessManager that is in singleton class every time some part from the application that looks like this : NetWorkService::NetWorkService() { manager = new QNetworkAccessManager(); } QNetworkAccessManager* NetWorkService::getManager() { return manager; } needs to preform http call it call...

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) return; el.setFocus(); QMouseEvent pressEvent(QMouseEvent::MouseButtonP...

Changing Textbox and other UI components in Qt/Webkit ?

I am making my own browser with Qt/Webkit for touch screen devices. I want to have My own editbox in browser ( so that when user click on it, I can open virtual keyboard), Touch friendly listbox and other controls. So In QWebView I want to have MyOwnTextEdit instread of QTextEdit and same for all other UI controls. Please tell me How c...

How to have virtual keyboard in qtwebkit ?

Hi Friends, I want to have virtual keyboard in qtwebkit, I am making mobile browser for full touch screen device. I had seen this link http://th30z.netsons.org/2009/03/qt-webkit-virtual-keyboard/. But I want to know that is there any other way than changing webpage 's javascript? ...

Expose C++ object to Javascript in Qt

Is there any way I can expose a C++ object/function to JavaScript running inside the QtWebKit browser in Qt? It's possible to expose ActionScript objects to JS code running inside the WebKit browser in Adobe AIR - I'm looking for similar functionality in Qt. ...

Display using QtWebKit, whilst parsing xml

I wish to use QtWebKit to load a url for display, but, that's the easy part, I can do that. What I wish to do is record / log xml as I go. My attention here is to record and database certain details on the fly, by recording those details. My problem is, how to do this all on the fly, without requesting the same url from the server twice...

Use click+drag to scroll page in QtWebKit

I have an application (written in Python and PyQt4 for Maemo) which produces a long list as output. To present it nicely to the user, I am using QtWebKit. I would like the user to be able to click+drag to scroll the page. How can I achieve this? ...

Accessing an image from a webpage in PyQt4 QtWebkit

If a page has fully loaded on a QWebView, how can I get the data for a certain image (probably through the dom?) ...

QWebFrame::evaluateJavaScript vs. script-tag in HTML

Hi, I want to develop an application that uses QtWebKit and JQuery. What I need to know is, is there any difference between reading JQuery from a file and evaluateJavaScript it, or embedding it as a script tag within the "page" that is displayed within the widget? EDIT: It seems that I have this figured out at least partially. evalua...

Retrieve position of a google maps v3 marker to Qt in a desktop app with QtWebKit

I'm building a Qt app with Python where you can point and click at a (google) map and get the coordinates of the location. The map is shown through a QWebView loading a simple HTML page and the user can create markers by clicking. Screenshot of the widget after clicking on the map. However, I'm having trouble to retrieve the just-clicke...

Is there a summary of differences in rendering/behavior between QtWebKit and Chrome/Safari WebKit?

I wrote a simple Qt application (Windows+Mac) that uses QtWebKit to render a web site inside a window. But I already saw differences in layout and behavior between our app and Chrome (that uses WebKit as well), e.g.: - different fonts are displayed for the same web page - an html anchor link with "javascript:someFunction()" is not worki...

Fact or fiction: Webkit’s rendering performance is much lower when used in Qt

Using Qt’s Webkit implementation renders much slower than directly implementing the Webkit engine -- is this true or just a myth? From my own experience, I found the load time of a complex page about twice as long in Qt’s “Fancy Browser” example as it does in Google Chrome (which also incorporates a port of Webkit), but I hardly think...

ImportError: No module named QtWebKit

I am on centos5. I installed python26 source with a make altinstall. Then I did a: yum install qt4 yum install qt4-devel yum install qt4-doc From riverbankcomputing.co.uk I downloaded the source for sip 4.10.2, compiled and installed fine. Then from the same site I downloaded and compiled from source PyQt-x11-4.7.3 Both installs were...

Qt: How can I receive events fired by QWebElement objects?

I want to receive notifications whenever links are clicked or text fields are changed in a Webkit instance in Qt. How can I hook up event listeners to a QWebElement? I know I can put some Javascript on each element’s onchange / onclick handler, but I’m looking for a cleaner solution. ...

Qt: How can I access the actual widgets on a page in WebKit?

Is there a way to access the widgets generated by INPUT and SELECT on a page in WebKit, using Qt? On a related note, does WebKit provide these widgets, or does it delegate back to Qt to generate them? ...

How to save webpage in QT webkit as "save as complete webpage"

Hello, I need to save web page using QT webkit similar to "Save as complete webpage". Following are my requirements, Save the index html file, maintaining entity encoding. Need to download all linked images and other resources. Need to change resource path in html page to local downloaded path. Need to maintain webpage current stat...

Using Qt to read and parse html files with QWebKit?

I would like to read and parse certain elements of html files but I'm not interested in rendering it in any way. Basically I would like to go through all my div tags and get some of its style attributes. This is what I've done so far: QWebPage page; QWebFrame * frame = page.mainFrame(); QUrl fileUrl("localFile.html"); frame->setUrl(fil...

Browser User Agent

I am making an embedded mobile browser with qtwebkit and I want to set user agent by which I always get basic HTML version of gmail. ...