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 […]
Dojo
From Qt Labs
| Graphics Dojo | ||
| Platforms: | GNU/Linux, Windows, Mac | |
| License: | GPL | |
Graphics Dojo blogs | ||
Subversion:
| ||
[edit] Graphics Dojo
[edit]
A dojo (道場, dōjō) is a Japanese term which literally means "place of the Way". As such it can refer to a formal training place for any of the Japanese do arts but typically it is considered the formal gathering place for students of a martial arts style to conduct training, examinations and other related encounters." [wikipedia.org]
[edit]
The Graphics Dojo is a place where we show off advanced and fancy graphics effects related to Qt and graphics.
The source code for all the examples can be checked out with subversion: svn checkout svn://labs.trolltech.com/svn/graphics/dojo
[edit] Older Dojo Examples
[edit] Examples2
[edit]
X11 Widget Mirror
A neat example showing how to monitor contents of a X11 window for changes and compose it with
some transformation. All done in real time.
svn://labs.trolltech.com/svn/graphics/dojo/qx11mirror
[edit] Examples1
[edit]
ARGB
This example shows how to create ARGB windows. Meaning windows which can be drawn to using transparent brush and will in turn be transparent. The example loads an SVG file and renders its contents in a transparent window, then adds a checkbox that makes it show/hide an icon in the upper right corner.
svn://labs.trolltech.com/svn/graphics/dojo/argb
[edit] Latest 5 Graphics Dojo Blogs
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 […]
When you develop a web browser for a mobile platform, a D-pad or a mini trackball is usually the main in-page navigation input. In some browsers, going "down" scrolls the whole web page or jumps to the nearest (sensible) hyperlink. There is an interesting observation here. As you scroll to read e.g. a news site, […]
For any widget system, be it KDE4 Plasma, Mac OS X Dashboard, Yahoo! Widgets, Opera Widget, Google Gadgets, Microsoft Gadgets, and so on, weather applet is usually the typical example (beside a digital clock, an analog clock, or other variants of the clock). What is shown here is yet another little weather info tool, built […]

