org::kde::kirigami::CardsLayout

Search for usage in LXR

org::kde::kirigami::CardsLayout Class Reference
Inheritance diagram for org::kde::kirigami::CardsLayout:

Properties

int maximumColumns
 
int maximumColumnWidth
 
int minimumColumnWidth
 

Detailed Description

A GridLayout optimized for showing one or two columns of cards, depending on the available space.

It Should be used when the cards are not instantiated by a model or by a model which has always very few items (In the case of a big model CardsListView or CardsGridview should be used instead).

They are presented as a grid of two columns which will remain centered if the application is really wide, or become a single column if there is not enough space for two columns, such as a mobile phone screen.

A CardsLayout should always be contained within a ColumnLayout.

Since
2.4

Definition at line 28 of file CardsLayout.qml.

Property Documentation

◆ maximumColumns

int org::kde::kirigami::CardsLayout::maximumColumns
read

This property holds the maximum number of columns.

This layout will never lay out the items in more columns than maximumColumns

default: 2

Since
2.5

Definition at line 39 of file CardsLayout.qml.

◆ maximumColumnWidth

int org::kde::kirigami::CardsLayout::maximumColumnWidth
read

This property holds the maximum width the columns may have.

The cards will never become wider than this size; when the GridLayout is wider than maximumColumnWidth, it will switch from one to two columns.

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 52 of file CardsLayout.qml.

◆ minimumColumnWidth

int org::kde::kirigami::CardsLayout::minimumColumnWidth
read

This property holds the minimum width the columns may have.

The layout will try to dispose of items in a number of columns that will respect this size constraint.

default: 12 * Kirigami.Units.gridUnit

Since
2.5

Definition at line 63 of file CardsLayout.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Mar 21 2023 04:12:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.