IconButton Class

(Utils::IconButton)

Properties

Public Functions

IconButton(QWidget *parent = nullptr)
void animateShow(bool visible)
bool hasAutoHide() const
float iconOpacity()
void paintEvent(QPaintEvent *event) override
void setAutoHide(bool hide)
void setIconOpacity(float value)
QSize sizeHint() const override

Protected Functions

void keyPressEvent(QKeyEvent *ke) override
void keyReleaseEvent(QKeyEvent *ke) override

Property Documentation

autoHide : bool

Access functions:

bool hasAutoHide() const
void setAutoHide(bool hide)

iconOpacity : float

Access functions:

float iconOpacity()
void setIconOpacity(float value)

Member Function Documentation

IconButton::IconButton(QWidget *parent = nullptr)

Default constructs an instance of IconButton.

void IconButton::animateShow(bool visible)

[protected] void IconButton::keyPressEvent(QKeyEvent *ke)

[protected] void IconButton::keyReleaseEvent(QKeyEvent *ke)

void IconButton::paintEvent(QPaintEvent *event)

QSize IconButton::sizeHint() const