MauiKit Controls
GridItemTemplate.qml
30 * <a href="https://doc.qt.io/qt-6/qml-qtquick-controls-item.html">This controls inherits from QQC2 Item, to checkout its inherited properties refer to the Qt Docs.</a>
32 * The structure of this control is divided into a top header for the image/icon and a two labels for the title and message, at the bottom.
36 * For extra information checkout the GridBrowserDelegate documentation, since this template elementis used as its base.
44 implicitHeight: _layout.implicitHeight
54 * The positioning of the elements is handled by a ColumnLayout, so use the attached properties accordingly.
72 * @brief An alias for the QQC2 Label handling the title text. Exposed for fine tuning the label font properties.
79 * @brief An alias for the QQC2 Label handling the message text. Exposed for fine tuning the label font properties.
87 * The component used as the icon header is loaded with a QQC2 Loader - this property exposes that element that was loaded.
88 * By default the loaded item will be a MauiKit IconItem, but if another component is used for `iconComponent`, that will be the resulting Item.
105 property alias iconVisible : _iconLoader.visible
114 * @brief A size hint for the icon to be used in the header. The final size will depend on the available space.
119 * @brief A size hint for the image to be used in the header. The final size will depend on the available space.
120 * By default this is set to `-1` which means that the image header will take the rest of the available space.
135 * @brief Whether this element is currently on a selected or checked state. This is used to highlight the component accordingly.
138 property bool isCurrentItem: false
151 property int fillMode : Image.PreserveAspectCrop
156 property int maskRadius: 0
194 * @brief The horizontal alignment of the control elements. If the text in the labels should be aligned to the left, right or be centered. This can also affect the icon.
204 * @brief The header section can be modified by changing its component to a custom one. By default the component used for the `iconComponent` is a MauiKit IconItem element.
205 * @note When using a custom component for the header section, pay attention that it has an `implicitHeight` and `implicitWidth` set.
295 color: control.isCurrentItem || control.highlighted? control.Maui.Theme.highlightedTextColor : control.Maui.Theme.textColor
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 6 2024 12:09:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 6 2024 12:09:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.