PDA

View Full Version : How to upgrade QWebKit from 2.1 to 2.2 in Qt 4.8.0 ?



dkj5
26th March 2013, 11:09
Hi All,

I want to upgrade QWebKit in Qt 4.8.0. The current version of QWebKit is 2.1 and I want to upgrade it to 2.2. I have downloaded the tar.gz file of QWebKit 2.2 from :
http://gitorious.org/+qtwebkit-developers/webkit/qtwebkit/commits/qtwebkit-2.2 .

Can someone guide me on how to proceed for build and installation of QWebKit 2.2 for Qt 4.8.0 ? Any links or documents that describe the steps for upgrading QWebKit from 2.1 to 2.2 ?

I am currently using Ubuntu 11.04.

Thanks.

With Regards,
Dhananjay.K.J.

ChrisW67
27th March 2013, 00:00
Qt 4.8.0 already contains Qt WebKit 2.2.1 (http://blog.qt.digia.com/blog/2011/12/15/qt-4-8-0-released/)
Just upgrade Qt to 4.8.3 or .4 and you will have Qt WebKit 2.2.3+ (http://qt-project.org/uploads/community_updates/changes-4.8.3)

Or you could tell us about the problem you are assuming will be fixed by this.

dkj5
27th March 2013, 07:12
Chris, Thank you for your quick response.

I checked out the first link in your reply post.

I have Qt 4.8.0 installed in my Ubuntu system and the version of QtWebKit in it is 2.1. I am not supposed to change the version of the Qt from 4.8.0 to 4.8.3. , since I am not sure on how it will affect the input from the underlying software layer.
Using the QWebView widget, I was trying to access a HTML5 page which requires QtWebKit to support HTML5. QtWebKit 2.1doesn't support HTML5 and QtWebKit 2.2 supports HTML5. So, I thought of upgrading only QtWebKit while retaining the same Qt 4.8.0. to check if I can get the HTML5 page through Qt 4.8.0.

ChrisW67
27th March 2013, 08:30
According to the Qt 4.8.0 source code (http://qt.gitorious.org/qt/qt/blobs/v4.8.0/src/3rdparty/webkit/VERSION) Qt 4.8.0 contains Qt WebKit at commit 52a11cec052aa40d3bbc06861be1177b649b4a99 which you will find is neatly tagged 2.2.1 in the Qt WebKit 2.2 branch commit graph (http://gitorious.org/webkit/qtwebkit/graph/qtwebkit-2.2).

dkj5
27th March 2013, 11:28
I was able to build QtWebKit 2.2 seperately by following the steps given in:
http://trac.webkit.org/wiki/BuildingQtOnLinux# .
I tested the working of the QtWebKit by launching the test browser and accessing a particular HTML5 page. It works as desired. But, currently unable to get the QWebView widget in the Widget Box in Qt designer.

Does some one know how to get the QWebView widget in the Qt designer after seperately building the QtWebKit ?