QAdvanced Item View
0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
|
The QClickableLabel widget provides a text or image display and responses to mouse button clicks. More...
#include <qclickablelabel.h>
Signals | |
void | clicked (Qt::MouseButtons buttons) |
Public Member Functions | |
QClickableLabel (QWidget *parent=0) | |
~QClickableLabel () | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event) |
The QClickableLabel widget provides a text or image display and responses to mouse button clicks.
QClickableLabel is used for displaying text or an image. User interaction functionality is provided. The visual appearance of the label can be configured in various ways, and it can be used for specifying a focus mnemonic key for another widget.
A QClickableLabel can contain any of the content types specified for QLabel.
QClickableLabel::QClickableLabel | ( | QWidget * | parent = 0 | ) |
Constructs an empty label.
The parent
is passed to the QLabel constructor.
QClickableLabel::~QClickableLabel | ( | ) |
Destroys the clickable label.
|
signal |
This signal is emitted when the button is activated (i.e. pressed down then released while the mouse cursor is inside the label. buttons
contains the state of the mouse buttons. E.g. left mouse button clicked.
|
protected |
Reimplemented from QLabel::mousePressEvent(QMouseEvent* event).