Card QML Type
This is the standard layout of a Card. More...
Import Statement: | import org.kde.kirigami |
Inherits: |
Properties
- actions : list<T.Action>
- banner
- banner.source : url
- banner.title : string
- banner.titleAlignment : Qt.Alignment
- banner.titleIcon : string
- banner.titleLevel : int
- banner.titleWrapMode : QtQuick.Text.wrapMode
Detailed Description
It is recommended to use this class when the concept of Cards is needed in the application.
This Card has default items as header and footer. The header is an image that can contain an optional title and icon, accessible via the banner grouped property.
The footer will show a series of toolbuttons (and eventual overflow menu) representing the actions list accessible with the list property actions. It is possible even tough is discouraged to override the footer: in this case the actions property shouldn't be used.
Property Documentation
actions : list<T.Action> |
This property holds the clickable actions that will be available in the footer of the card.
The actions will be represented by a list of ToolButtons with an optional overflow menu, when not all of them will fit in the available Card width.
banner group |
---|
banner.source : url |
banner.title : string |
banner.titleAlignment : Qt.Alignment |
banner.titleIcon : string |
banner.titleLevel : int |
banner.titleWrapMode : QtQuick.Text.wrapMode |
This grouped property controls the banner image present in the header.
It also has the full set of properties that QtQuick.Image has, such as sourceSize and fillMode.
- source: The source for the image. It understands any URL valid for an Image component.
- titleIcon: The optional icon to put in the banner, either a freedesktop-compatible icon name (recommended) or any URL supported by QtQuick.Image.
- title: The title for the banner, shown as contrasting text over the image.
- titleAlignment: The alignment of the title inside the image. Default:
Qt.AlignTop | Qt.AlignLeft
. - titleLevel: The Kirigami.Heading level for the title, ranging from 1 (big) to 5 (small). Default:
1
. - titleWrapMode: Whether the header text should be able to wrap. Default:
Text.NoWrap
.