⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwtscale.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtScale" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtScale \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP A Widget which contains a scale. This Widget can be used to decorate composite widgets with a scale. .PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBPosition\fP { \fBLeft\fP, \fBRight\fP, \fBTop\fP, \fBBottom\fP }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtScale\fP (\fBPosition\fP, QWidget *parent, const  char *name=0)".br.ti -1c.RI "virtual \fB~QwtScale\fP ()".br.ti -1c.RI "void \fBsetTitle\fP (const  QString &title)".br.ti -1c.RI "const  QString \fBtitle\fP () const ".br.ti -1c.RI "void \fBsetTitleColor\fP (const  QColor &c)".br.ti -1c.RI "const  QColor \fBtitleColor\fP () const ".br.ti -1c.RI "void \fBsetTitleFont\fP (const  QFont &f)".br.ti -1c.RI "const  QFont \fBtitleFont\fP () const ".br.ti -1c.RI "void \fBsetTitleAlignment\fP (int flags)".br.ti -1c.RI "int \fBtitleAlignment\fP () const ".br.ti -1c.RI "void \fBsetBorderDist\fP (int start, int end)".br.ti -1c.RI "int \fBstartBorderDist\fP () const ".br.ti -1c.RI "int \fBendBorderDist\fP () const ".br.ti -1c.RI "void \fBminBorderDist\fP (int &start, int &end) const ".br.ti -1c.RI "void \fBsetBaselineDist\fP (int bd)".br.ti -1c.RI "int \fBbaseLineDist\fP () const ".br.ti -1c.RI "void \fBsetTitleDist\fP (int td)".br.ti -1c.RI "int \fBtitleDist\fP () const ".br.ti -1c.RI "void \fBsetScaleDiv\fP (const  \fBQwtScaleDiv\fP &sd)".br.ti -1c.RI "void \fBsetScaleDraw\fP (\fBQwtScaleDraw\fP *)".br.ti -1c.RI "const  \fBQwtScaleDraw\fP * \fBscaleDraw\fP () const ".br.ti -1c.RI "void \fBsetLabelFormat\fP (char f, int prec, int fieldWidth)".br.ti -1c.RI "void \fBlabelFormat\fP (char &f, int &prec, int &fieldWidth) const ".br.ti -1c.RI "void \fBsetLabelAlignment\fP (int align)".br.ti -1c.RI "void \fBsetLabelRotation\fP (double rotation)".br.ti -1c.RI "virtual QSize \fBsizeHint\fP () const ".br.ti -1c.RI "virtual QSize \fBminimumSizeHint\fP () const ".br.ti -1c.RI "virtual QSizePolicy \fBsizePolicy\fP () const ".br.ti -1c.RI "int \fBtitleHeightForWidth\fP (int width) const ".br.ti -1c.RI "int \fBdimForLength\fP (int length, const  QFontMetrics &scaleFontMetrics) const ".br.ti -1c.RI "void \fBdrawTitle\fP (QPainter *painter, \fBQwtScaleDraw::Orientation\fP o, const  QRect &rect) const ".br.ti -1c.RI "void \fBsetPosition\fP (\fBPosition\fP o)".br.ti -1c.RI "\fBPosition\fP \fBposition\fP () const ".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "void \fBdraw\fP (QPainter *p) const ".br.ti -1c.RI "void \fBpaintEvent\fP (QPaintEvent *e)".br.ti -1c.RI "void \fBresizeEvent\fP (QResizeEvent *e)".br.ti -1c.RI "void \fBscaleChange\fP ()".br.ti -1c.RI "void \fBfontChange\fP (const  QFont &oldfont)".br.ti -1c.RI "void \fBlayoutScale\fP (bool update=TRUE)".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtScale::Position\fP".PPPosition of the scale .PP\fBSee also:\fP.RS 4\fBQwtScale::QwtScale\fP .RE.PP.SH "Constructor & Destructor Documentation".PP .SS "QwtScale::QwtScale (\fBQwtScale::Position\fP pos, QWidget * parent, const char * name = 0)".PPConstructor. \fBParameters:\fP.RS 4\fIpos\fP Position. Must be one of \fCQwtScale::Left, QwtScale::Right, QwtScale::Bottom, \fPor \fCQwtScale::Top\fP .br\fIparent\fP .br\fIname\fP passed to QWidget's CTOR .RE.PP.SS "QwtScale::~\fBQwtScale\fP ()\fC [virtual]\fP".PPDestructor. .SH "Member Function Documentation".PP .SS "int QwtScale::baseLineDist () const".PP\fBReturns:\fP.RS 4base line distance .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setBaselineDist\fP .RE.PP.SS "int QwtScale::dimForLength (int length, const QFontMetrics & scaleFontMetrics) const".PPFind the minimum dimension for a given length. dim is the height, length the width seen in direction of the title. \fBParameters:\fP.RS 4\fIlength\fP width for horizontal, height for vertical scales .br\fIscaleFontMetrics\fP Font metrics of the scale .RE.PP\fBReturns:\fP.RS 4height for horizontal, width for vertical scales .RE.PP.SS "void QwtScale::draw (QPainter * p) const\fC [protected]\fP".PPdraw the scale .SS "void QwtScale::drawTitle (QPainter * painter, \fBQwtScaleDraw::Orientation\fP o, const QRect & rect) const".PPRotate and paint a title according to its position into a given rectangle. .PP\fBParameters:\fP.RS 4\fIpainter\fP Painter .br\fIo\fP Orientation .br\fIrect\fP Bounding rectangle .RE.PP.SS "int QwtScale::endBorderDist () const".PP\fBReturns:\fP.RS 4end border distance .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setBorderDist\fP .RE.PP.SS "void QwtScale::fontChange (const QFont & oldFont)\fC [protected]\fP".PPNotify a change of the font. This virtual function may be overloaded by derived widgets. The default implementation resizes the scale and repaints the widget. .PP\fBParameters:\fP.RS 4\fIoldFont\fP Previous font .RE.PP.SS "void QwtScale::labelFormat (char & f, int & prec, int & fieldwidth) const".PPFormat character and precision have the same meaning as for the QString class. .PP\fBReturn values:\fP.RS 4\fIf\fP format character .br\fIprec\fP precision .br\fIfieldwidth\fP minimum fieldwidth .RE.PP\fBReturns:\fP.RS 4the number format for the major scale labels .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setLabelFormat\fP, QString::sprintf in the Qt manual .RE.PP.SS "void QwtScale::layoutScale (bool update = TRUE)\fC [protected]\fP".PPRecalculate the scale's geometry and layout based on. .SS "void QwtScale::minBorderDist (int & start, int & end) const".PPDetermine the minimum Border distances. This member function returns the minimum distance of the scale's endpoints from the widget borders which is required for the mark labels to fit into the widget. .PP\fBWarning:\fP.RS 4.IP "\(bu" 2The minimum border distance depends on the font..PP.RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setBorderDist()\fP .RE.PP.SS "QSize QwtScale::minimumSizeHint () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4a minimum size hint .RE.PP.SS "void QwtScale::paintEvent (QPaintEvent * e)\fC [protected]\fP".PPpaintEvent .SS "\fBQwtScale::Position\fP QwtScale::position () const".PP\fBReturns:\fP.RS 4position .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setPosition\fP .RE.PP.SS "void QwtScale::resizeEvent (QResizeEvent * e)\fC [protected]\fP".PPresizeEvent .SS "void QwtScale::scaleChange ()\fC [protected]\fP".PPNotify a change of the scale. This virtual function can be overloaded by derived classes. The default implementation updates the geometry and repaints the widget. .SS "const  \fBQwtScaleDraw\fP * QwtScale::scaleDraw () const".PPscaleDraw of this scale .PP\fBSee also:\fP.RS 4QwtScaleDraw::setScaleDraw .RE.PP.SS "void QwtScale::setBaselineDist (int bd)".PPSpecify the border distance of the scale's base line. \fBParameters:\fP.RS 4\fIbd\fP border distance of the baseline .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::baseLineDist\fP .RE.PP.SS "void QwtScale::setBorderDist (int dist1, int dist2)".PPSpecify distances of the scale's endpoints from the widget's borders. The actual borders will never be less than minimum border distance. .PP\fBParameters:\fP.RS 4\fIdist1\fP Left or top Distance .br\fIdist2\fP Right or bottom distance .RE.PP\fBSee also:\fP.RS 4QwtScale::borderDist .RE.PP.SS "void QwtScale::setLabelAlignment (int align)".PPChange the alignment for the labels. See \fBQwtScaleDraw::setLabelAlignment()\fP. .PP\fBSee also:\fP.RS 4\fBQwtScaleDraw::setLabelAlignment()\fP, \fBQwtScale::setLabelRotation()\fP .RE.PP.SS "void QwtScale::setLabelFormat (char f, int prec, int fieldwidth)".PPSet the number format for the major scale labels. Format character and precision have the same meaning as for the QString class. .PP\fBParameters:\fP.RS 4\fIf\fP format character .br\fIprec\fP precision .br\fIfieldwidth\fP minimum fieldwidth .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::labelFormat\fP, QString::sprintf in the Qt manual .RE.PP.SS "void QwtScale::setLabelRotation (double rotation)".PPChange the rotation for the labels. See \fBQwtScaleDraw::setLabelRotation()\fP. \fBSee also:\fP.RS 4\fBQwtScaleDraw::setLabelRotation()\fP, \fBQwtScale::setLabelAlignment()\fP .RE.PP.SS "void QwtScale::setPosition (\fBPosition\fP pos)".PPAssign a position. \fBParameters:\fP.RS 4\fIpos\fP new position .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::position\fP .RE.PP.SS "void QwtScale::setScaleDiv (const \fBQwtScaleDiv\fP & sd)".PPAssign a scale division. The scale division determines where to set the tick marks. .PP\fBParameters:\fP.RS 4\fIsd\fP Scale Division .RE.PP\fBSee also:\fP.RS 4For more information about scale divisions, see \fBQwtScaleDiv\fP. .RE.PP.SS "void QwtScale::setScaleDraw (\fBQwtScaleDraw\fP * sd)".PPSet a scale draw sd has to be created with new and will be deleted in \fBQwtScale::~QwtScale\fP or the next call of \fBQwtScale::setScaleDraw\fP. .SS "void QwtScale::setTitle (const QString & text)".PPGive title new text contents. \fBParameters:\fP.RS 4\fItext\fP New text .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::title\fP .RE.PP.SS "void QwtScale::setTitleAlignment (int flags)".PPChange the title alignment. \fBParameters:\fP.RS 4\fIflags\fP see Qt::AlignmentFlags. flags are interpreted in direction of the label, AlignTop, AlignBottom can't be set as the title will always be aligned to the scale. .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::titleAlignment\fP, Qt::AlignmentFlags .RE.PP.SS "void QwtScale::setTitleColor (const QColor & c)".PPChange the title color. \fBParameters:\fP.RS 4\fIc\fP new title color .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::titleColor\fP .RE.PP.SS "void QwtScale::setTitleDist (int td)".PPSpecify the distance between scale and title. \fBParameters:\fP.RS 4\fItd\fP Title distance .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::titleDist\fP .RE.PP.SS "void QwtScale::setTitleFont (const QFont & f)".PPChange the title font. \fBParameters:\fP.RS 4\fIf\fP new font .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::title\fP .RE.PP.SS "QSize QwtScale::sizeHint () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4a size hint .RE.PP.SS "QSizePolicy QwtScale::sizePolicy () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4Fixed/MinimumExpanding for vertical, MinimumExpanding/Fixed for horizontal scales. .RE.PP.SS "int QwtScale::startBorderDist () const".PP\fBReturns:\fP.RS 4start border distance .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setBorderDist\fP .RE.PP.SS "const  QString QwtScale::title () const".PP\fBReturns:\fP.RS 4title .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setTitle\fP .RE.PP.SS "int QwtScale::titleAlignment () const".PP\fBReturns:\fP.RS 4alignment .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setTitleAlignment\fP, Qt::AlignmentFlags .RE.PP.SS "const  QColor QwtScale::titleColor () const".PP\fBReturns:\fP.RS 4title color .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setTitleColor\fP .RE.PP.SS "int QwtScale::titleDist () const".PP\fBReturns:\fP.RS 4distance between scale and title .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setBaselineDist\fP .RE.PP.SS "const  QFont QwtScale::titleFont () const".PP\fBReturns:\fP.RS 4title font .RE.PP\fBSee also:\fP.RS 4\fBQwtScale::setTitleFont\fP .RE.PP.SS "int QwtScale::titleHeightForWidth (int width) const".PPFind the height of the title for a given width. \fBParameters:\fP.RS 4\fIwidth\fP Width .RE.PP\fBReturns:\fP.RS 4height Height .RE.PP.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 + -