eyalk11 / qt-collapsible-section-pyside6

Basic collapsible section for PySide6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QT: Collapsible Section

This is a simple collapsable section for QT. It has been tested with QT5.6.

Special thanks to "x squared" who has posted the original code for this idea at StackOverflow: http://stackoverflow.com/a/37119983/2573127

A python version is available, using PyQt5, as Section.py.

Changes in this fork

  • Adapted to PySide6

Sample Code

Section* section = new Section("Section", 300, parentWidget);
auto* anyLayout = new QVBoxLayout();
anyLayout->addWidget(new QLabel("Some Text in Section", section));
anyLayout->addWidget(new QPushButton("Button in Section", section));

section->setContentLayout(*anyLayout);

Sample Animation

section opening and closing

About

Basic collapsible section for PySide6

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 63.2%Language:Python 34.4%Language:QMake 2.5%