A Widget which displays a QwtText.
More...
#include <qwt_text_label.h>
A Widget which displays a QwtText.
Definition at line 26 of file qwt_text_label.h.
◆ QwtTextLabel() [1/2]
QwtTextLabel::QwtTextLabel |
( |
QWidget * |
parent = NULL | ) |
|
|
explicit |
◆ QwtTextLabel() [2/2]
QwtTextLabel::QwtTextLabel |
( |
const QwtText & |
text, |
|
|
QWidget * |
parent = NULL |
|
) |
| |
|
explicit |
Constructs a label that displays the text, text
- Parameters
-
parent | Parent widget |
text | Text |
Definition at line 50 of file qwt_text_label.cpp.
◆ ~QwtTextLabel()
QwtTextLabel::~QwtTextLabel |
( |
| ) |
|
|
virtual |
◆ clear
void QwtTextLabel::clear |
( |
| ) |
|
|
slot |
◆ defaultIndent()
int QwtTextLabel::defaultIndent |
( |
| ) |
const |
|
private |
◆ drawContents()
void QwtTextLabel::drawContents |
( |
QPainter * |
painter | ) |
|
|
protectedvirtual |
◆ drawText()
void QwtTextLabel::drawText |
( |
QPainter * |
painter, |
|
|
const QRectF & |
textRect |
|
) |
| |
|
virtual |
◆ heightForWidth()
int QwtTextLabel::heightForWidth |
( |
int |
width | ) |
const |
|
virtual |
- Parameters
-
- Returns
- Preferred height for this widget, given the width.
Definition at line 209 of file qwt_text_label.cpp.
◆ indent()
int QwtTextLabel::indent |
( |
| ) |
const |
◆ init()
void QwtTextLabel::init |
( |
| ) |
|
|
private |
◆ margin()
int QwtTextLabel::margin |
( |
| ) |
const |
◆ minimumSizeHint()
QSize QwtTextLabel::minimumSizeHint |
( |
| ) |
const |
|
virtual |
◆ paintEvent()
void QwtTextLabel::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protectedvirtual |
◆ plainText()
QString QwtTextLabel::plainText |
( |
| ) |
const |
◆ setIndent()
void QwtTextLabel::setIndent |
( |
int |
indent | ) |
|
Set label's text indent in pixels
- Parameters
-
indent | Indentation in pixels |
Definition at line 142 of file qwt_text_label.cpp.
◆ setMargin()
void QwtTextLabel::setMargin |
( |
int |
margin | ) |
|
◆ setPlainText()
void QwtTextLabel::setPlainText |
( |
const QString & |
text | ) |
|
◆ setText [1/2]
Change the label's text, keeping all other QwtText attributes
- Parameters
-
text | New text |
textFormat | Format of text |
- See also
- QwtText
Definition at line 96 of file qwt_text_label.cpp.
◆ setText [2/2]
void QwtTextLabel::setText |
( |
const QwtText & |
text | ) |
|
|
virtualslot |
◆ sizeHint()
QSize QwtTextLabel::sizeHint |
( |
| ) |
const |
|
virtual |
◆ text()
const QwtText & QwtTextLabel::text |
( |
| ) |
const |
◆ textRect()
QRect QwtTextLabel::textRect |
( |
| ) |
const |
Calculate geometry for the text in widget coordinates
- Returns
- Geometry for the text
Definition at line 288 of file qwt_text_label.cpp.
◆ m_data
◆ indent
◆ margin
◆ plainText
QString QwtTextLabel::plainText |
|
readwrite |
The documentation for this class was generated from the following files: