FormCard QML Type

A single card that follows a form style. More...

Import Statement: import org.kde.kirigamiaddons.formcard
Inherits:

Item

Properties

Detailed Description

This is the entrypoint component for FormCard.

A FormCard consists of a container that can be used to create your own Settings pages. It has a different color than the background.

Each FormCard can contain one or more Form delegates in its contentItem. To add more than one Form delegate to a FormCard, use a ColumnLayout to group them.

Multiple FormCards can be grouped with a ColumnLayout to represent different Settings sections.

Each section is expected to contain a FormHeader as the first delegate, which serves the role of a section title.

The height of the FormCard matches the implicit height of the contentItem and does not need to be set, while the width is expected to be given by the parent, for example, via a Layout.fillWidth.

Property Documentation

bottomPadding : real [default: 0]

Padding property used around the content edges.


cardWidthRestricted : bool [read-only]

Whether the card's width is being restricted.


delegates : alias [default]

The delegates inside the Form card.

This is where you should add new Form delegates.


horizontalPadding : real [default: 0]

Padding property used around the content edges.


leftPadding : real [default: 0]

Padding property used around the content edges.


maximumWidth : real [default: Kirigami.Units.gridUnit * 30]

The maximum width of the card.

This can be set to a specific value to force its delegates to wrap instead of using the entire width of the parent.

See also cardWidthRestricted.


padding : real [default: 0]

Padding property used around the content edges.


rightPadding : real [default: 0]

Padding property used around the content edges.


topPadding : real [default: 0]

Padding property used around the content edges.


verticalPadding : real [default: 0]

Padding property used around the content edges.