Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

User Interface: Transparency
Functional Description

Qt 4 supports transparency between widgets. Qt Extended uses this to allow a background image to be seen behind the user interface controls.


Background Selection

Themes can allow the background displayed to be selected by the user by including the background plug-in as part of the background element, for example:

<group name="background">
        <image name="background" rect="0,0,0,0" src="background" color="Highlight" tile="yes"/>
        <plugin name="bgplugin"/>

This allows the background to be specified by the Appearance settings application. If no background is specified by the user then the background is specified entirely by the theme. Since the theme elements are rendered in order specified in the theme, it is possible to add watermarks over the user's selected background to maintain branding.

Background Tinting

When the background is displayed outside the homescreen it is tinted with the window color to ensure all text is visible regardless of how dark the background is.

Shadow Effect

Pop-up windows, for example menus and comboboxes, are displayed with a transparent shadow to provide the illusion of depth.

Theme Background Specification

The background is specified by the background element in the homescreen theme definition.

Transparent Colors

Qt Extended Core supports transparent colors and brushes. This allows widgets and custom painters to blend with the background and present a more polished appearance.

Qt Extended's standard color schemes assign some transparency to most standard palette colors so that the background is visible even when the programmer paints over it. This does place some responsibility with the developer when painting to ensure that the correct effect is achieved. In particular it is important not to "overdraw" some areas, since the overlapping region will appear darker than desired making the background less visible.

Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3