org::kde::kirigami::CardsLayout

Properties | |
int | maximumColumns |
int | maximumColumnWidth |
int | minimumColumnWidth |
Detailed Description
A QtQuick.Layouts.GridLayout optimized for showing a couple of columns of cards, depending on the available space.
This should be used when the cards to be displayed, are not instantiated by a model or are instantiated by a model that always has very few items (in the case of a big model, use CardsListView or CardsGridView instead).
The cards are presented in a grid of at least one column, which will remain centered. Note that the layout will automatically add and remove columns depending on the size available.
- Note
- A CardsLayout should always be contained within a QtQuick.Layouts.ColumnLayout.
- Since
- org.kde.kirigami 2.4
Definition at line 28 of file CardsLayout.qml.
Property Documentation
◆ maximumColumns
|
read |
This property holds the maximum number of columns.
default: 2
- Since
- org.kde.kirigami 2.5
Definition at line 37 of file CardsLayout.qml.
◆ maximumColumnWidth
|
read |
This property holds the maximum width the columns may have.
If the default needs to be overridden for some reason, it is advised to express this unit as a multiple of Kirigami.Units.gridUnit.
default: 20 * Kirigami.Units.gridUnit
Definition at line 47 of file CardsLayout.qml.
◆ minimumColumnWidth
|
read |
This property holds the minimum width the columns may have.
default: 12 * Kirigami.Units.gridUnit
- Since
- org.kde.kirigami 2.5
Definition at line 55 of file CardsLayout.qml.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:58:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.