ListSectionHeader
ListSectionHeader Class Reference
Inheritance diagram for ListSectionHeader:
Properties | |
alias | label |
Detailed Description
A section delegate for the primitive ListView component.
It's intended to make all listviews look coherent, mirroring the style of the Kirigami version, but with the separator line being an SVG from the Plasma theme rather than a simple line.
Any additional content items will be positioned in a row at the trailing side of this component.
Example usage:
import QtQuick
import org.kde.plasma.components as PlasmaComponents
import org.kde.plasma.extras as PlasmaExtras
ListView {
section.delegate: PlasmaExtras.ListSectionHeader {
label: section
PlasmaComponents.Button {
text: "Button 1"
}
PlasmaComponents.Button {
text: "Button 2"
}
}
}
Definition at line 42 of file ListSectionHeader.qml.
Property Documentation
◆ label
|
read |
This property sets the text of the ListView's section header.
Definition at line 48 of file ListSectionHeader.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.