• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. Kirigami2
  • KDE Home
  • Contact Us

Quick Links

Skip menu "Kirigami2"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Related Pages

Class Picker

About

QtQuick plugins to build user interfaces based on the KDE human interface guidelines

Maintainer
Marco Martin
Supported platforms
Android, FreeBSD, iOS (maintainer needed), Linux, macOS (maintainer needed), Windows
Community
IRC: #kde-kirigami on Freenode
Mailing list: plasma-devel
Use with CMake
find_package(KF5Kirigami2)
target_link_libraries(yourapp KF5::Kirigami2)
Clone
git clone git://anongit.kde.org/kirigami.git
Browse source
Kirigami2 on cgit.kde.org

Kirigami2

  • View on LXR
  • org
  • kde
  • kirigami
  • Card
Properties | List of all members
org::kde::kirigami::Card Class Reference

Inherits AbstractCard.

Properties

list< QtObject > actions
 
alias banner
 
list< QtObject > hiddenActions
 

Detailed Description

This is the standard layout of a Card.

It is recommended to use this class when the concept of Cards is needed in the application. This Card has default items as header and footer. The header is an image that can contain an optional title and icon, accessible via the banner grouped property. The footer will show a series of toolbuttons (and eventual overflow menu) representing the actions list accessible with the list property actions. It is possible even tough is discouraged to override the footer: in this case the actions property shouldn't be used.

AbstractCard

Since
2.4

Definition at line 39 of file Card.qml.

Property Documentation

list<QtObject> org::kde::kirigami::Card::actions

actions: list<Action> if the card should provide clickable actions, put them in this property, they will be put in the footer as a list of ToolButtons plus an optional overflow menu, when not all of them will fit in the available Card width.

Definition at line 47 of file Card.qml.

alias org::kde::kirigami::Card::banner

banner: Image Gropuped property to control the banner image present in the header, it has the following sub properties:

  • url source: the source for the image, it understands any url valid for an Image component
  • string title: the title for the banner, shown as contrasting text over the image
  • Qt.Alignment titleAlignment: the alignment of the title inside the image, a combination of flags is supported (default: Qt.AlignTop | Qt.AlignLeft)
  • string titleIcon: the optional icon to put in the banner: it can be either a freedesktop-compatible icon name (recommended) or any url supported by Image
  • titleLevel: The Kirigami Heading level for the title, it controls the font size, default 1
  • wrapMode: if the header should be able to do wrapping

It also has the full set of properties a QML Image has, such as sourceSize and fillMode

Remarks
This property is read-only

Definition at line 75 of file Card.qml.

list<QtObject> org::kde::kirigami::Card::hiddenActions

actions: hiddenActions<Action> This list of actions is for those you always want in the menu, even if there is enough space.

Since
2.6

Definition at line 54 of file Card.qml.


The documentation for this class was generated from the following file:
  • Card.qml
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Feb 21 2019 22:47:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal