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.
 All Classes Functions Variables Enumerations Enumerator Properties Groups Pages
Signals | Public Member Functions | Protected Member Functions | List of all members
QClickableLabel Class Reference

The QClickableLabel widget provides a text or image display and responses to mouse button clicks. More...

#include <qclickablelabel.h>

Inheritance diagram for QClickableLabel:

Signals

void clicked (Qt::MouseButtons buttons)
 

Public Member Functions

 QClickableLabel (QWidget *parent=0)
 
 ~QClickableLabel ()
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
 

Detailed Description

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* clickableLabel = new QClickableLabel(this);
clickableLabel->setText(tr("Clickable Label"));
connect(clickableLabel, SIGNAL(clicked(Qt::MouseButtons)), this, SLOT(clickedOnLabel(Qt::MouseButtons)));

Constructor & Destructor Documentation

QClickableLabel::QClickableLabel ( QWidget *  parent = 0)

Constructs an empty label.

The parent is passed to the QLabel constructor.

QClickableLabel::~QClickableLabel ( )

Destroys the clickable label.

Member Function Documentation

void QClickableLabel::clicked ( Qt::MouseButtons  buttons)
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.

void QClickableLabel::mousePressEvent ( QMouseEvent *  event)
protected

Reimplemented from QLabel::mousePressEvent(QMouseEvent* event).


The documentation for this class was generated from the following files: