org::kde::kirigami::CardsLayout

org::kde::kirigami::CardsLayout Class Reference

Inherits GridLayout.

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. GridLayout

Since
2.4

Definition at line 25 of file CardsLayout.qml.

Property Documentation

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

maximumColumns: int The layout will never lay out the items in more columns than maximumColumns Default: 2

Since
2.5

Definition at line 33 of file CardsLayout.qml.

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

maximumColumnWidth: int The maximum width the columns may have.

the cards will never get 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

Definition at line 43 of file CardsLayout.qml.

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

minimumColumnWidth: int The minimumWidth the columns may have.

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

Since
2.5

Definition at line 50 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-2020 The KDE developers.
Generated on Tue Aug 4 2020 22:37:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.