The QxtLabel widget is a label which is able to show elided and rotated plain text.
More...
#include <qxtlabel.h>
List of all members.
Detailed Description
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:
- See also:
- QLabel
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 |
|
) |
| [explicit] |
Constructs a new QxtLabel with text, parent and flags.
QxtLabel::~QxtLabel |
( |
| ) |
[virtual] |
Member Function Documentation
Qt::Alignment QxtLabel::alignment |
( |
| ) |
const |
void QxtLabel::changeEvent |
( |
QEvent * |
event | ) |
[protected, virtual] |
QxtLabel::clicked |
( |
| ) |
[signal] |
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
Qt::TextElideMode QxtLabel::elideMode |
( |
| ) |
const |
QSize QxtLabel::minimumSizeHint |
( |
| ) |
const [virtual] |
void QxtLabel::mousePressEvent |
( |
QMouseEvent * |
event | ) |
[protected, virtual] |
void QxtLabel::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
[protected, virtual] |
void QxtLabel::paintEvent |
( |
QPaintEvent * |
event | ) |
[protected, virtual] |
void QxtLabel::setAlignment |
( |
Qt::Alignment |
alignment | ) |
|
void QxtLabel::setElideMode |
( |
Qt::TextElideMode |
mode | ) |
|
void QxtLabel::setText |
( |
const QString & |
text | ) |
[slot] |
QSize QxtLabel::sizeHint |
( |
| ) |
const [virtual] |
QString QxtLabel::text |
( |
| ) |
const |
QxtLabel::textChanged |
( |
const QString & |
text | ) |
[signal] |
This signal is emitted whenever the text has changed.
Friends And Related Function Documentation
Property Documentation
Qt::Alignment QxtLabel::alignment [read, write] |
the alignment of the text
The text is aligned according to this property. The default value is Qt::AlignCenter.
- See also:
- text, Qt::Alignment
Qt::TextElideMode QxtLabel::elideMode [read, write] |
the elide mode of the text
The text is elided according to this property. The default value is Qt::ElideMiddle.
- See also:
- text, Qt::TextElideMode
QString QxtLabel::text [read, write] |
The documentation for this class was generated from the following files: