If you use QWebView, do you know how make its background to be translucent? Apparently, the trick is not so well known, hence I decide to share it here.
Basically it boils down the following code snippet:
QPalette palette = view->palette();
palette.setBrush(QPalette::Base, Qt::transparent);
view->page()->setPalette(palette);
view->setAttribute(Qt::WA_OpaquePaintEvent, false);
The first three lines set a new transparent brush for the page. This is necessary […]
WebKit
From Qt Labs
| WebKit | |||
| |||
| Platforms: | GNU/Linux, Windows, Mac | ||
| License: | LGPL | ||
| Depends on: | Bison, Flex, Perl, libxslt, sqlite3, gpref, shell | ||
WebKit blogs | |||
Subversion:
| |||
[edit] WebKit
[edit]
WebKit is an open source web browser engine. WebKit's HTML and JavaScript code began as a branch of the KHTML and KJS libraries from KDE. As part of KDE framework KHTML was based on Qt but during their porting efforts Apple's engineers made WebKit toolkit independent. WebKit Qt is a project aiming at porting this fabulous engine back to Qt.
[edit]
The code can be obtained by typing:
svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit
from a terminal window. The official way of building WebKit is to execute the:
WebKit/WebKitTools/Scripts/build-webkit
script, which will build the engine and sample applications in the WebKit/WebKitBuild directory.
The code in the SVN contains two Qt applications. WebKit/WebKitQt/QtLauncher/ which is a minimal test browser and WebKit/WebKitTools/DumpRenderTree/DumpRenderTree.qtproj which is an application used to test various aspects of the rendering engine. The latter is automatically invoked when the WebKit/WebKitTools/Scripts/run-webkit-tests script is executed.
[edit] Latest 5 WebKit Blogs
In the recent pre-release of Qt for S60 we have included a build of WebKit that compiles and runs on S60. This pre-release is an important milestone for this porting effort that started about half a year ago. Hence, I would like to briefly highlight a few things about it:
The main work is finding good […]
As Ariya mentioned in one of his previous posts, we’ve been doing some work on using JavaScriptCore (JSC) as the QtScript back-end. The whole idea is that you’ll get the same QtScript API, but with JSC performance. There’s also the prospect of being able to use the QtScript API together with QtWebKit, giving a smooth […]
While planning for Developer Days 2008 I tried to wring something interesting out of my technically starved brain to show off to the crowds of hackers attending. At the time I had just noticed Twitter, a service that seemed to promise the value of Facebook without all the junk - seeing status updates from my […]
An interesting feature of a navigation system (so I was told, I don’t own a car) is the so-called "night mode". Basically the display is adjusted so that the text and the map become more readable under low ambient light condition. An easy trick to do this is by inverting the color, just like what […]