A Widget which displays a QwtText.
Más...
#include <qwt_text_label.h>
Lista de todos los miembros.
Descripción detallada
A Widget which displays a QwtText.
Documentación del constructor y destructor
QwtTextLabel::QwtTextLabel |
( |
QWidget * |
parent = NULL | ) |
[explicit] |
Constructs an empty label.
- Parámetros:
-
QwtTextLabel::QwtTextLabel |
( |
QWidget * |
parent, |
|
|
const char * |
name |
|
) |
| [explicit] |
Constructs an empty label.
- Parámetros:
-
parent | Parent widget |
name | Object name |
Constructs a label that displays the text, text
- Parámetros:
-
parent | Parent widget |
text | Text |
QwtTextLabel::~QwtTextLabel |
( |
| ) |
[virtual] |
Documentación de las funciones miembro
void QwtTextLabel::clear |
( |
void |
| ) |
[slot] |
Clear the text and all QwtText attributes.
void QwtTextLabel::drawContents |
( |
QPainter * |
painter | ) |
[protected, virtual] |
Redraw the text and focus indicator.
Reimplementado de QFrame.
void QwtTextLabel::drawText |
( |
QPainter * |
painter, |
|
|
const QRect & |
textRect |
|
) |
| [protected, virtual] |
int QwtTextLabel::heightForWidth |
( |
int |
width | ) |
const [virtual] |
Returns the preferred height for this widget, given the width.
- Parámetros:
-
Reimplementado de QWidget.
int QwtTextLabel::indent |
( |
| ) |
const |
int QwtTextLabel::margin |
( |
| ) |
const |
QSize QwtTextLabel::minimumSizeHint |
( |
| ) |
const [virtual] |
Return a minimum size hint.
Reimplementado de QWidget.
void QwtTextLabel::paintEvent |
( |
QPaintEvent * |
e | ) |
[protected, virtual] |
void QwtTextLabel::setIndent |
( |
int |
indent | ) |
|
Set label's text indent in pixels
- Parámetros:
-
indent | Indentation in pixels |
void QwtTextLabel::setMargin |
( |
int |
margin | ) |
[virtual] |
Set label's margin in pixels
- Parámetros:
-
Reimplementado de QFrame.
void QwtTextLabel::setText |
( |
const QwtText & |
text | ) |
[virtual, slot] |
Change the label's text
- Parámetros:
-
Reimplementado en QwtLegendItem.
Change the label's text, keeping all other QwtText attributes
- Parámetros:
-
text | New text |
textFormat | Format of text |
- Ver también:
- QwtText
QSize QwtTextLabel::sizeHint |
( |
| ) |
const [virtual] |
const QwtText & QwtTextLabel::text |
( |
| ) |
const |
QRect QwtTextLabel::textRect |
( |
| ) |
const |
Calculate the rect for the text in widget coordinates
- Devuelve:
- Text rect
Documentación de propiedades
int QwtTextLabel::indent [read, write] |
Return label's text indent in pixels.
int QwtTextLabel::margin [read, write] |
Return label's text indent in pixels.
Reimplementado de QFrame.
La documentación para esta clase fue generada a partir de los siguientes ficheros: