AbstractCard QML Type
The base item for all kinds of cards. More...
Import Statement: | import org.kde.kirigami |
Inherited By: |
Properties
- footer : Item
- header : Item
- headerOrientation : int
- showClickFeedback : bool
Detailed Description
A card is a visual object that groups its contents into a logical unit, connecting them all together visually. Cards can be interactive and clickable, or visual only, purely used for grouping.
AbstractCard is an empty card, providing just the styling and basic properties. Use an AbstractCard when you want the visual styling and grouping of a card, but plan to fill it with your own custom content layout. Content is organized into three properties: header
, contentItem
, and footer
.
The Card component provides a standard layout if your needs are less custom.
Property Documentation
footer : Item |
This property holds an item that serves as a footer.
This item will be positioned at the bottom if headerOrientation is Qt.Vertical or on the right if it is Qt.Horizontal.
default: null
; set something to make it the footer.
header : Item |
This property holds an item that serves as a header.
This item will be positioned on top if headerOrientation is Qt.Vertical or on the left if it is Qt.Horizontal.
default: null
; set something to make it the header.
headerOrientation : int |
This property sets the card's orientation.
- Qt.Vertical: the header will be positioned on top
- Qt.Horizontal: the header will be positioned on the leading side
default: Qt.Vertical
showClickFeedback : bool |
This property sets whether clicking or tapping on the card shows visual click feedback.
Use this if you want the card to perform an action in its onClicked
signal handler.
default: false