org::kde::kirigami::CardsGridView

org::kde::kirigami::CardsGridView Class Reference

Inherits org::kde::kirigami::CardsGridViewPrivate.

Properties

int columns
 
alias delegate
 
int maximumColumns
 
int maximumColumnWidth
 
int minimumColumnWidth
 

Detailed Description

CardsGridView is used to display a grid of Cards generated from any model.

The behavior is same as CardsLayout, and it allows cards to be put in one or two columns depending from the available width. GridView has the limitation that every Card must have the same exact height, so cellHeight must be manually set to a value in which the content fits for every item. If possible use cards only when you don't need to instantiate a lot and use CardsLayout intead. GridView

See also
CardsLayout
Since
2.4

Definition at line 24 of file CardsGridView.qml.

Property Documentation

int org::kde::kirigami::CardsGridView::columns

columns: int how many columns the gridview has

Since
2.5
Remarks
This property is read-only

Definition at line 32 of file CardsGridView.qml.

alias org::kde::kirigami::CardsGridView::delegate
Remarks
This is the default property

Definition at line 61 of file CardsGridView.qml.

int org::kde::kirigami::CardsGridView::maximumColumns

maximumColumns: int Maximum value for columns if the user wants to limit it

Since
2.5

Definition at line 38 of file CardsGridView.qml.

int org::kde::kirigami::CardsGridView::maximumColumnWidth

maximumColumnWidth: int The maximum width the columns may have.

the cards will never get wider than this size, when the GridView 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 48 of file CardsGridView.qml.

int org::kde::kirigami::CardsGridView::minimumColumnWidth

minimumColumnWidth: int The minimum width the columns may have.

the cards will never get smaller than this size. If the default needs to be overridden for some reason, it is advised to express this unit as a multiple of Kirigami.Units.gridUnit

Since
2.5

Definition at line 58 of file CardsGridView.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 Sep 29 2020 22:44:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.