Skip to main content

class AccordionItem

Source

One accordion item with a keyboard accessible trigger and animated content.

Inherits from QWidget

Functions​

content​

public QVBoxLayout & content()

isExpanded​

public bool isExpanded()

Source

AccordionItem​

public AccordionItem(const QString & title, QWidget * parent)

title​

public QString title()

setTitle​

public void setTitle(const QString & title)

setExpanded​

public void setExpanded(bool expanded)

toggle​

public void toggle()

setContentWidget​

public void setContentWidget(QWidget & widget)

expandedChanged​

public void expandedChanged(bool expanded)

paintEvent​

protected void paintEvent(QPaintEvent * event)

eventFilter​

protected bool eventFilter(QObject * watched, QEvent * event)

trigger​

public QPushButton & trigger()

Source