Card
Properties | |
listTAction | actions |
alias | banner |
Detailed Description
This is the standard layout of a Card.
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.
- Since
- 2.4
Property Documentation
◆ actions
|
read |
◆ banner
|
read |
This grouped property controls the banner image present in the header.
- Remarks
- This property is read-only
This grouped property has the following sub-properties:
source: url
: The source for the image. It understands any URL valid for an Image component.titleIcon: string
: The optional icon to put in the banner, either a freedesktop-compatible icon name (recommended) or any URL supported by QtQuick.Image.title: string
: The title for the banner, shown as contrasting text over the image.titleAlignment: Qt::Alignment
: The alignment of the title inside the image. default:Qt.AlignTop | Qt.AlignLeft
titleLevel: int
: The Kirigami.Heading level for the title, which controls the font size. default:1
, which is the largest size.titleWrapMode: QtQuick.Text::wrapMode
: Whether the header text should be able to wrap. default:Text.NoWrap
It also has the full set of properties that QtQuick.Image has, such as sourceSize and fillMode.
- See also
- org::kde::kirigami::private::BannerImage
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 1 2024 18:46:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.