MauiKit Controls
ListItemTemplate.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 left side header for the image/icon and a four [4] labels for the title, message at the right side of the header, and at the far right side another two labels for complementary information.
37 * For extra information checkout the ListBrowserDelegate documentation, since this template element is used as its base.
51 default property alias content: _layout.data
84 * @brief An alias for the QQC2 Label handling the title text. Exposed for fine tuning the label font properties.
91 * @brief An alias for the QQC2 Label handling the subtitle text. Exposed for fine tuning the label font properties.
98 * @brief An alias for the QQC2 Label handling the extra information text. Exposed for fine tuning the label font properties.
105 * @brief An alias for the QQC2 Label handling the extra information text. Exposed for fine tuning the label font properties.
120 * The component used as the icon header is loaded with a QQC2 Loader - this property exposes that element that was loaded.
121 * By default the loaded item will be a MauiKit IconItem, but if another component is used for `iconComponent`, that will be the resulting Item.
149 readonly property alias rightLabels : _rightLabels
159 * @brief A size hint for the icon to be used in the header. The final size will depend on the available space.
164 * @brief A size hint for the image to be used in the header. The final size will depend on the available space.
167 property int imageSizeHint : -1
171 * By default this is set to `-1` which means that the size of the header will be determined by the child implicit height and width.
183 property string iconSource
186 * @brief Whether this element is currently on a selected or checked state. This is used to highlight the component accordingly.
202 property int fillMode : Image.PreserveAspectFit
207 property int maskRadius: 0
210 * @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.
262 readonly property color labelColor: control.isCurrentItem || control.highlighted? Maui.Theme.highlightedTextColor : Maui.Theme.textColor
267 visible: (control.width > Maui.Style.units.gridUnit * 10) && (control.iconSource.length > 0 || control.imageSource.length > 0)
271 Layout.preferredWidth: visible ? Math.max(implicitWidth, control.headerSizeHint, 0) :-_layout.spacing
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:57:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 11:57:11 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.