A simple clickable label that mimics a push button and emits onClicked event.
More...
#include <pqClickableLabel.h>
Inherits QLabel.
|
void | onClicked (QWidget *widget) |
| Signal emitted when the label is clicked (to mimic a push button) More...
|
|
A simple clickable label that mimics a push button and emits onClicked event.
Definition at line 15 of file pqClickableLabel.h.
◆ pqClickableLabel() [1/2]
pqClickableLabel::pqClickableLabel |
( |
| ) |
|
|
delete |
Default constructor is deleted.
◆ pqClickableLabel() [2/2]
pqClickableLabel::pqClickableLabel |
( |
QWidget * |
widget, |
|
|
const QString & |
text, |
|
|
const QString & |
tooltip, |
|
|
const QString & |
statusTip, |
|
|
QPixmap * |
pixmap, |
|
|
QWidget * |
parent |
|
) |
| |
Default constructor that sets up the tooltip and the label pixmap or text.
If the pixmap is nullptr, it will not be set.
◆ ~pqClickableLabel()
pqClickableLabel::~pqClickableLabel |
( |
| ) |
|
|
overridedefault |
Defaulted destructor for polymorphism.
◆ onClicked
void pqClickableLabel::onClicked |
( |
QWidget * |
widget | ) |
|
|
signal |
Signal emitted when the label is clicked (to mimic a push button)
- Parameters
-
◆ mousePressEvent()
void pqClickableLabel::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ Widget
QWidget* pqClickableLabel::Widget = nullptr |
|
protected |
The documentation for this class was generated from the following file: