📄 qwtplaintext.3
字号:
.TH "QwtPlainText" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtPlainText \- .SH SYNOPSIS.br.PPInherits \fBQwtText\fP..PP.SH "Detailed Description".PP Plain text drawing support. .SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtPlainText\fP (const QString &text, const QFont &, int align=Qt::AlignCenter|Qt::WordBreak|Qt::ExpandTabs, const QColor &color=QColor(), const QPen &pen=QPen(Qt::NoPen), const QBrush &brush=QBrush(Qt::NoBrush))".br.ti -1c.RI "\fBQwtPlainText\fP (const QString &text, const QFont &font, const QColor &color)".br.ti -1c.RI "virtual \fBQwtText\fP * \fBclone\fP () const ".br.ti -1c.RI "virtual int \fBheightForWidth\fP (int width) const ".br.ti -1c.RI "virtual QRect \fBboundingRect\fP (QPainter *painter=0) const ".br.ti -1c.RI "virtual void \fBdraw\fP (QPainter *painter, const QRect &rect) const ".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtPlainText::QwtPlainText (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))".PPConstructor. \fBParameters:\fP.RS 4\fItext\fP Contents of the text .br\fIfont\fP Font of the text .br\fIalign\fP Or'd values of Qt::AlignmentFlags for drawing the text .br\fIcolor\fP Color of the text .br\fIpen\fP Pen to draw the enclosing rectangle .br\fIbrush\fP Brush to draw the enclosing rectangle .RE.PP.SS "QwtPlainText::QwtPlainText (const QString & text, const QFont & font, const QColor & color)".PPConstructor. \fBParameters:\fP.RS 4\fItext\fP Text .br\fIfont\fP Font .br\fIcolor\fP Color .RE.PP.SH "Member Function Documentation".PP .SS "QRect QwtPlainText::boundingRect (QPainter * painter = 0) const\fC [virtual]\fP".PPReturns the bounding rectangle. The bounding rectangle is calculated with respect to (0, 0). The left and top border depend on the alignment flags:.IP "\(bu" 2the left border is at -width, -width/2 or 0 for Qt::AlignRight, Qt::AlignHCenter or Qt::AlignLeft respectively.IP "\(bu" 2the top border is at 0, -height/2 or -height for Qt::AlignTop, Qt::AlignVCenter or Qt::AlignBottom respectively.PP.PPUse for instance QRect::moveBy(x,y), before drawing the text into the rectangle. Implements \fBQwtText\fP..SS "\fBQwtText\fP * QwtPlainText::clone () const\fC [virtual]\fP".PPCreate a clone. Implements \fBQwtText\fP..SS "void QwtPlainText::draw (QPainter * painter, const QRect & rect) const\fC [virtual]\fP".PPDraw the text in a clipping rectangle. \fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIrect\fP Clipping rectangle .RE.PPImplements \fBQwtText\fP..SS "int QwtPlainText::heightForWidth (int width) const\fC [virtual]\fP".PPFind the height for a given width. \fBParameters:\fP.RS 4\fIwidth\fP Width .RE.PP\fBReturns:\fP.RS 4height Height .RE.PPImplements \fBQwtText\fP..SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -