Home · All Classes · alphabetical Classes List · Modules · Functions ·

QxtLabel Class Reference
[Gui]

A simplified label which is able to show elided and rotated text. More...

Public Slots

Signals

Public Member Functions

Properties


Detailed Description

A simplified label which is able to show elided and rotated text.

QxtLabel is a simple label widget able to show elided and rotated plain text. In addition, QxtLabel provides a signal for clicking.

qxtlabel.png

QxtLabel in action.

Note:
Requires Qt 4.2 or newer.


Constructor & Destructor Documentation

QxtLabel::QxtLabel ( QWidget *  parent = 0, Qt::WindowFlags  flags = 0 ) [explicit]

Constructs a new QxtLabel with parent and flags.


QxtLabel::QxtLabel ( const QString &  text, QWidget *  parent = 0, Qt::WindowFlags  flags = 0 )

Constructs a new QxtLabel with text, parent and flags.


QxtLabel::~QxtLabel ( ) [virtual]

Destructs the label.



Member Function Documentation

QxtLabel::clicked ( ) [signal]

This signal is emitted whenever the label has been clicked.



Property Documentation

Qt::Alignment QxtLabel::alignment [read, write]

This property holds the alignment of the text.

The text is aligned according to this property. The default value is Qt::AlignCenter.

See also:
text


Qt::TextElideMode QxtLabel::elideMode [read, write]

This property holds the elide mode of the text.

The text is elided according to this property. The default value is Qt::ElideMiddle.

See also:
text


Qxt::Rotation QxtLabel::rotation [read, write]

This property holds the rotation of the label.

The label is rotated according to this property. The default value is Qxt::NoRotation.

See also:
Qxt::Rotation



(c) 2007A.Picciani and A.Higerd LGPL
libqxt 0.2