Home · All Classes · All Functions · Overviews

QML DropShadow Element Reference

[DropShadow instantiates the C++ class QGraphicsDropShadowEffect]

The DropShadow object provides a drop shadow effect. More...

Properties

Detailed Description

A drop shadow effect renders the source item with a drop shadow. The color of the drop shadow can be modified using the color property. The drop shadow offset can be modified using the xOffset and yOffset properties and the blur radius of the drop shadow can be changed with the blurRadius property.

By default, the drop shadow is a semi-transparent dark gray shadow, blurred with a radius of 1 at an offset of 8 pixels towards the lower right.


Property Documentation

blurRadius : real

The blur radius in pixels of the drop shadow.

Using a smaller radius results in a sharper shadow, whereas using a bigger radius results in a more blurred shadow.

By default, the blur radius is 1 pixel.


color : color

The color of the drop shadow.

By default, the drop color is a semi-transparent dark gray.


xOffset : real
yOffset : real

The shadow offset in pixels.

By default, xOffset and yOffset are 8 pixels.



Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0