📄 qwtslider.3
字号:
.TH "QwtSlider" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtSlider \- .SH SYNOPSIS.br.PPInherits \fBQwtSliderBase\fP, and \fBQwtScaleIf\fP..PP.SH "Detailed Description".PP The Slider Widget. QwtSlider is a slider widget which operates on an interval of type double. QwtSlider supports different layouts as well as a scale. .PP\fBSee also:\fP.RS 4\fBQwtSliderBase\fP and \fBQwtScaleIf\fP for the descriptions of the inherited members. .RE.PP.PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBScalePos\fP { \fBNone\fP, \fBLeft\fP, \fBRight\fP, \fBTop\fP, \fBBottom\fP }".br.ti -1c.RI "enum \fBBGSTYLE\fP { \fBBgTrough\fP = 0x1, \fBBgSlot\fP = 0x2, \fBBgBoth\fP = BgTrough | BgSlot }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtSlider\fP (QWidget *parent, const char *name=0, Qt::Orientation=Horizontal, \fBScalePos\fP=None, int bgStyle=BgTrough)".br.ti -1c.RI "virtual void \fBsetOrientation\fP (Qt::Orientation)".br.ti -1c.RI "void \fBsetBgStyle\fP (\fBBGSTYLE\fP st)".br.ti -1c.RI "\fBBGSTYLE\fP \fBbgStyle\fP () const ".br.ti -1c.RI "void \fBsetScalePos\fP (\fBScalePos\fP st)".br.ti -1c.RI "\fBScalePos\fP \fBscalePos\fP () const ".br.ti -1c.RI "int \fBthumbLength\fP () const ".br.ti -1c.RI "int \fBthumbWidth\fP () const ".br.ti -1c.RI "int \fBborderWidth\fP () const ".br.ti -1c.RI "void \fBsetThumbLength\fP (int l)".br.ti -1c.RI "void \fBsetThumbWidth\fP (int w)".br.ti -1c.RI "void \fBsetBorderWidth\fP (int bw)".br.ti -1c.RI "void \fBsetMargins\fP (int x, int y)".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.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual double \fBgetValue\fP (const QPoint &p)".br.ti -1c.RI "virtual void \fBgetScrollMode\fP (const QPoint &p, int &scrollMode, int &direction)".br.ti -1c.RI "void \fBdraw\fP (QPainter *p, const QRect &update_rect)".br.ti -1c.RI "virtual void \fBdrawSlider\fP (QPainter *p, const QRect &r)".br.ti -1c.RI "virtual void \fBdrawThumb\fP (QPainter *p, const QRect &, int pos)".br.ti -1c.RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)".br.ti -1c.RI "virtual void \fBpaintEvent\fP (QPaintEvent *e)".br.ti -1c.RI "virtual void \fBvalueChange\fP ()".br.ti -1c.RI "virtual void \fBrangeChange\fP ()".br.ti -1c.RI "virtual void \fBscaleChange\fP ()".br.ti -1c.RI "virtual void \fBfontChange\fP (const QFont &oldFont)".br.ti -1c.RI "void \fBlayoutSlider\fP (bool update=TRUE)".br.ti -1c.RI "int \fBxyPosition\fP (double v) const ".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtSlider::BGSTYLE\fP".PPBackground style .PP\fBSee also:\fP.RS 4\fBQwtSlider::QwtSlider\fP .RE.PP.SS "enum \fBQwtSlider::ScalePos\fP".PPPosition of the scale .PP\fBSee also:\fP.RS 4\fBQwtSlider::QwtSlider\fP .RE.PP.SH "Constructor & Destructor Documentation".PP .SS "QwtSlider::QwtSlider (QWidget * parent, const char * name = 0, Qt::Orientation orient = Horizontal, \fBScalePos\fP scalePos = None, int bgStyle = BgTrough)".PPConstructor. \fBParameters:\fP.RS 4\fIparent\fP parent widget .br\fIname\fP The Widget's name. Default = 0. .br\fIorient\fP Orientation of the slider. Can be Qt::Horizontal or Qt::Vertical. Defaults to Horizontal. .br\fIscalePos\fP Position of the scale. Can be QwtSlider::None, QwtSlider::Left, QwtSlider::Right, QwtSlider::Top, or QwtSlider::Bottom. Defaults to QwtSlider::None. .br\fIbgStyle\fP Background style. QwtSlider::BgTrough draws the slider button in a trough, QwtSlider::BgSlot draws a slot underneath the button. An or-combination of both may also be used. The default is QwtSlider::BgTrough. .RE.PP.SH "Member Function Documentation".PP .SS "void QwtSlider::draw (QPainter * p, const QRect & update_rect)\fC [protected]\fP".PPredraw the slider .SS "void QwtSlider::drawSlider (QPainter * p, const QRect & r)\fC [protected, virtual]\fP".PPDraw the slider into the specified rectangle. .SS "void QwtSlider::drawThumb (QPainter * p, const QRect &, int pos)\fC [protected, virtual]\fP".PPDraw the thumb at a position. .SS "void QwtSlider::fontChange (const QFont & oldFont)\fC [protected, virtual]\fP".PPNotify change in font. .SS "void QwtSlider::getScrollMode (const QPoint & p, int & scrollMode, int & direction)\fC [protected, virtual]\fP".PPDetermine scrolling mode and direction. \fBParameters:\fP.RS 4\fIp\fP point .br\fIscrollMode\fP Scrolling mode .br\fIdirection\fP Direction .RE.PPImplements \fBQwtSliderBase\fP..SS "double QwtSlider::getValue (const QPoint & p)\fC [protected, virtual]\fP".PPDetermine the value corresponding to a specified mouse location. Implements \fBQwtSliderBase\fP..SS "void QwtSlider::layoutSlider (bool update = TRUE)\fC [protected]\fP".PPRecalculate the slider's geometry and layout based on. .SS "QSize QwtSlider::minimumSizeHint () const\fC [virtual]\fP".PPReturn a minimum size hint. \fBWarning:\fP.RS 4The return value of \fBQwtSlider::minimumSizeHint()\fP depends on the font and the scale. .RE.PP.SS "void QwtSlider::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP".PPQt paint event. .SS "void QwtSlider::rangeChange ()\fC [protected, virtual]\fP".PPNotify change of range. Reimplemented from \fBQwtDblRange\fP..SS "void QwtSlider::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP".PPQt resize event. .SS "void QwtSlider::scaleChange ()\fC [protected, virtual]\fP".PPNotify changed scale. Implements \fBQwtScaleIf\fP..SS "void QwtSlider::setBorderWidth (int bd)".PPChange the slider's border width. \fBParameters:\fP.RS 4\fIbd\fP border width .RE.PP.SS "void QwtSlider::setMargins (int xMargin, int yMargin)".PPSet distances between the widget's border and internals. \fBParameters:\fP.RS 4\fIxMargin\fP Horizontal margin .br\fIyMargin\fP Vertical margin .RE.PP.SS "void QwtSlider::setOrientation (Qt::Orientation o)\fC [virtual]\fP".PPSet the orientation. \fBParameters:\fP.RS 4\fIo\fP Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. Defaults to Qt::Horizontal. .RE.PP\fBSee also:\fP.RS 4\fBQwtSliderBase::orientation()\fP .RE.PP.SS "void QwtSlider::setThumbLength (int thumbLength)".PPSet the slider's thumb length. \fBParameters:\fP.RS 4\fIthumbLength\fP new length .RE.PP.SS "void QwtSlider::setThumbWidth (int w)".PPChange the width of the thumb. \fBParameters:\fP.RS 4\fIw\fP new width .RE.PP.SS "QSize QwtSlider::sizeHint () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4\fBQwtSlider::minimumSizeHint()\fP .RE.PP.SS "QSizePolicy QwtSlider::sizePolicy () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4Horizontal: MinimumExpanding/Fixed, Vertical: Fixed/MinimumExpanding .RE.PP.SS "void QwtSlider::valueChange ()\fC [protected, virtual]\fP".PPNotify change of value. Reimplemented from \fBQwtSliderBase\fP..SS "int QwtSlider::xyPosition (double v) const\fC [protected]\fP".PPFind the x/y position for a given value v. .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 + -