Pages
API Documentation
On this page

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

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:

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

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.