QwtTextLabel(3) | Qwt User's Guide | QwtTextLabel(3) |
QwtTextLabel - A Widget which displays a QwtText.
#include <qwt_text_label.h>
Inherits QFrame.
Inherited by QwtLegendLabel.
void setText (const QString &,
QwtText::TextFormat textFormat=QwtText::AutoText)
virtual void setText (const QwtText &)
void clear ()
Clear the text and all QwtText attributes.
QwtTextLabel (QWidget *parent=NULL)
QwtTextLabel (const QwtText &, QWidget *parent=NULL)
virtual ~QwtTextLabel ()
Destructor. void setPlainText (const QString &)
QString plainText () const
const QwtText & text () const
Return the text. int indent () const
Return label's text indent in pixels. void setIndent (int)
int margin () const
Return label's text margin in pixels. void setMargin (int)
virtual QSize sizeHint () const
Return a size hint. virtual QSize minimumSizeHint () const
Return a minimum size hint. virtual int heightForWidth (int) const
QRect textRect () const
virtual void drawText (QPainter *, const QRectF &)
Redraw the text.
virtual void paintEvent (QPaintEvent *)
virtual void drawContents (QPainter *)
Redraw the text and focus indicator.
A Widget which displays a QwtText.
Constructs an empty label.
Parameters:
Constructs a label that displays the text, text
Parameters:
Parameters:
Returns:
Qt paint event
Parameters:
Reimplemented in QwtLegendLabel.
Interface for the designer plugin
Returns:
See also:
Set label's text indent in pixels
Parameters:
Set label's margin in pixels
Parameters:
Interface for the designer plugin - does the same as setText()
See also:
Change the label's text, keeping all other QwtText attributes
Parameters:
See also:
Change the label's text
Parameters:
Reimplemented in QwtLegendLabel.
Calculate geometry for the text in widget coordinates
Returns:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |