Home · All Classes · Grouped Classes · Annotated · Functions

User Interface: Transparency
Functional Description

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

Features

Background Selection (QTOPIA-1762)

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"/>
</group>

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 (QTOPIA-1763)

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 (QTOPIA-1765)

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

Theme Background Specification (QTOPIA-1761)

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

Transparent Colors (QTOPIA-1764)

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

Qtopia'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 © 2008 Nokia Trademarks
Qtopia 4.3.3