Ubuntu Manpages

QwtTextLabel

A Widget which displays a QwtText.

#include <qwt_text_label.h>

Inherited by QwtLegendItem.


void setText (const QString &, QwtText::TextFormat textFormat=QwtText::AutoText)
virtual void setText (const QwtText &)
void clear ()


QwtTextLabel (QWidget *parent=NULL)
QwtTextLabel (const QwtText &, QWidget *parent=NULL)
virtual ~QwtTextLabel ()
const QwtText & text () const
int indent () const
void setIndent (int)
int margin () const
void setMargin (int)
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
virtual int heightForWidth (int) const
QRect textRect () const


virtual void paintEvent (QPaintEvent *e)
virtual void drawContents (QPainter *)
virtual void drawText (QPainter *, const QRect &)

A Widget which displays a QwtText.

Parameters:

parent Parent widget

Parameters:

parent Parent widget
text Text

Destructor.

Clear the text and all QwtText attributes.

Redraw the text and focus indicator.

Redraw the text.

Parameters:

width Width

Return label's text indent in pixels.

Return label's text indent in pixels.

Return a minimum size hint.

Parameters:

event Paint event

Reimplemented in QwtLegendItem.

Parameters:

indent Indentation in pixels

Parameters:

margin Margin in pixels

Parameters:

text New text

Reimplemented in QwtLegendItem.

Parameters:

text New text
textFormat Format of text

See also:

QwtText

Return label's margin in pixels.

Reimplemented in QwtLegendItem.

Return the text.

Returns:

Text rect

Generated automatically by Doxygen for Qwt User's Guide from the source code.