Inheritance diagram for QwtRichText:
Public Member Functions | |
QwtRichText (const QString &text, const QFont &font, int align=Qt::AlignCenter|Qt::WordBreak|Qt::ExpandTabs, const QColor &color=QColor(), const QPen &pen=QPen(Qt::NoPen), const QBrush &brush=QBrush(Qt::NoBrush)) | |
QwtRichText (const QString &, const QFont &, const QColor &) | |
virtual | ~QwtRichText () |
virtual QwtText * | clone () const |
virtual void | setText (const QString &text) |
virtual void | setFont (const QFont &font) |
virtual void | setAlignment (int align) |
virtual int | heightForWidth (int width) const |
virtual QRect | boundingRect (QPainter *painter=0) const |
virtual void | draw (QPainter *painter, const QRect &rect) const |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Returns the bounding rectangle. The bounding rectangle is calculated with respect to (0, 0). The left and top border depend on the alignment flags:
Use for instance QRect::moveBy(x,y), before drawing the text into the rectangle. Implements QwtText. |
|
Create a clone.
Implements QwtText. |
|
Draw the text in a clipping rectangle.
Implements QwtText. |
|
Find the height for a given width.
Implements QwtText. |
|
Set the alignment.
Reimplemented from QwtText. |
|
Set the font.
Reimplemented from QwtText. |
|
Set the text.
Reimplemented from QwtText. |