![]() |
Home · Modules · Classes · Namespaces · Functions |
The QxtLabel widget is a label which is able to show elided and rotated plain text. More...
#include <QxtLabel>
Inherits QFrame.
The QxtLabel widget is a label which is able to show elided and rotated plain text.
QxtLabel is a label which is able to show elided and rotated plain text. In addition, QxtLabel provides a signal for clicking.
Usage:
QxtLabel* label = new QxtLabel(tr("Hello, World!"), this); label->setAlignment(Qt::AlignLeft | Qt::AlignVCenter); label->setElideMode(Qt::ElideRight); label->setRotation(Qxt::CounterClockwise); connect(label, SIGNAL(clicked()), this, SLOT(labelClicked()));
See also QLabel.
This property holds the alignment of the text.
The text is aligned according to this property. The default value is Qt::AlignCenter.
Access functions:
See also text and Qt::Alignment.
This property holds the elide mode of the text.
The text is elided according to this property. The default value is Qt::ElideMiddle.
Access functions:
See also text and Qt::TextElideMode.
This property holds the rotation of the label.
The label is rotated according to this property. The default value is Qxt::NoRotation.
Access functions:
See also Qxt::Rotation.
This property holds the text of the label.
Access functions:
Constructs a new QxtLabel with parent and flags.
Constructs a new QxtLabel with text, parent and flags.
Destructs the label.
This signal is emitted whenever the label has been clicked.
Note: A combination of mouse button press and release in shorter time than QApplication::doubleClickInterval is considered as a click.
See also QApplication::doubleClickInterval.
This signal is emitted whenever the text has changed.
Copyright © 2007-2011 Qxt Foundation |
Qxt 0.6.2 |