RibbonButton Class

RibbonButton class implements tool button that used in ribbon ui. Button appearance and behavior adapted for display inside the RibbonBar. More...

Header: #include <RibbonButton>
Inherits: QToolButton

Public Functions

void setWordWrap(bool on)
bool wordWrap() const

Reimplemented Public Functions

virtual QSize sizeHint() const override

Reimplemented Protected Functions

virtual void actionEvent(QActionEvent *event) override
virtual void changeEvent(QEvent *event) override
virtual bool event(QEvent *event) override
virtual void paintEvent(QPaintEvent *event) override

Detailed Description

Member Function Documentation

[override virtual protected] void RibbonButton::actionEvent(QActionEvent *event)

Reimplements: QToolButton::actionEvent(QActionEvent *event).

[override virtual protected] void RibbonButton::changeEvent(QEvent *event)

Reimplements: QToolButton::changeEvent(QEvent *e).

[override virtual protected] bool RibbonButton::event(QEvent *event)

Reimplements: QToolButton::event(QEvent *event).

[override virtual protected] void RibbonButton::paintEvent(QPaintEvent *event)

Reimplements: QToolButton::paintEvent(QPaintEvent *event).

[override virtual] QSize RibbonButton::sizeHint() const

Reimplements: QToolButton::sizeHint() const.