ListSectionHeader

Search for usage in LXR

ListSectionHeader Class Reference

Properties

alias label
 

Detailed Description

A section delegate for the primitive ListView component.

It's intended to make all listviews look coherent.

Any additional content items will be positioned in a row at the trailing side of this component.

Example usage:

import QtQuick
import QtQuick.Controls as QQC2
import org.kde.kirigami as Kirigami
ListView {
section.delegate: Kirigami.ListSectionHeader {
text: section
QQC2.Button {
text: "Button 1"
}
QQC2.Button {
text: "Button 2"
}
}
}

Definition at line 38 of file ListSectionHeader.qml.

Property Documentation

◆ label

alias ListSectionHeader::label
read

This property sets the text of the ListView's section header.

Deprecated
since 6.2 Use base type's AbstractButton::text property directly

Definition at line 45 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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.