ShadowedRectangle QML Type

A rectangle with a shadow behind it. More...

Import Statement: import org.kde.kirigami.primitives
Since: 5.69

Properties

Detailed Description

This item will render a rectangle, with a shadow below it. The rendering is done using distance fields, which provide greatly improved performance. The shadow is rendered outside of the item's bounds, so the item's width and height are the rectangle's width and height.

Property Documentation

border group

border.color : color

border.width : real

This property holds the border's grouped property.

width: The border's width in pixels. Default: 0

color: The border's color. Full RGBA colors are supported. Default: Qt.black

Example usage:

Kirigami.ShadowedRectangle {
    border.width: 2
    border.color: Kirigami.Theme.textColor
}

See also BorderGroup.


color : color

This property holds the rectangle's color.

Full RGBA colors are supported.

default: Qt.white


radius : qreal

This property holds the radii of the rectangle's corners.

This is the amount of rounding to apply to all of the rectangle's corners, in pixels. Each corner can have a different radius.

default: 0

See also corners.