KCollapsibleGroupBox Class
A groupbox featuring a clickable header and arrow indicator that can be expanded and collapsed to reveal the contents. More...
- Header:
#include <KCollapsibleGroupBox> - CMake:
find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons) - Inherits: QWidget
List of all members, including inherited members
Properties
Public Functions
- KCollapsibleGroupBox(QWidget *parent = nullptr)
- bool isExpanded() const
- void setExpanded(bool expanded)
- void setTitle(const QString &title)
- QString title() const
Public Slots
Signals
Detailed Description
When expanded, the widget will resize to fit the sizeHint of child items.
Property Documentation
title : QString
Access functions:
Notifier signal:
voidtitleChanged()
Member Function Documentation
[explicit] KCollapsibleGroupBox::KCollapsibleGroupBox(QWidget *parent = nullptr)
[slot] void KCollapsibleGroupBox::collapse()
Equivalent to setExpanded(false)
[slot] void KCollapsibleGroupBox::expand()
Equivalent to setExpanded(true)
[signal] void KCollapsibleGroupBox::expandedChanged()
Emitted when the widget expands or collapsed
Note: Notifier signal for property expanded.
bool KCollapsibleGroupBox::isExpanded() const
Whether contents are shown During animations, this will reflect the target state at the end of the animation
Note: Getter function for property expanded.
void KCollapsibleGroupBox::setExpanded(bool expanded)
Set whether contents are shown
The default is false until the user clicks
Note: Setter function for property expanded.
See also isExpanded()
void KCollapsibleGroupBox::setTitle(const QString &title)
Set the title that will be permanently shown at the top of the collapsing box Mnemonics are supported
Note: Setter function for property title.
See also title()
QString KCollapsibleGroupBox::title() const
The title
Note: Getter function for property title.
See also setTitle()
[signal] void KCollapsibleGroupBox::titleChanged()
Emitted when the title is changed
Note: Notifier signal for property title.
[slot] void KCollapsibleGroupBox::toggle()
Expands if collapsed and vice versa