.TH "QwtKnob" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtKnob \- .PP The Knob Widget. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtAbstractSlider\fP, and \fBQwtAbstractScale\fP. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBScrollMode\fP { \fBScrNone\fP, \fBScrMouse\fP, \fBScrTimer\fP, \fBScrDirect\fP, \fBScrPage\fP }" .br .ti -1c .RI "enum \fBSymbol\fP { \fBLine\fP, \fBDot\fP }" .br .in -1c .SS "Public Slots" .in +1c .ti -1c .RI "virtual void \fBfitValue\fP (double val)" .br .ti -1c .RI "virtual void \fBincValue\fP (int steps)" .br .ti -1c .RI "virtual void \fBsetReadOnly\fP (bool)" .br .ti -1c .RI "virtual void \fBsetValue\fP (double val)" .br .in -1c .SS "Signals" .in +1c .ti -1c .RI "void \fBsliderMoved\fP (double value)" .br .ti -1c .RI "void \fBsliderPressed\fP ()" .br .ti -1c .RI "void \fBsliderReleased\fP ()" .br .ti -1c .RI "void \fBvalueChanged\fP (double value)" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "bool \fBautoScale\fP () const " .br .ti -1c .RI "int \fBborderWidth\fP () const " .br .ti -1c .RI "virtual void \fBincPages\fP (int)" .br .ti -1c .RI "bool \fBisReadOnly\fP () const " .br .ti -1c .RI "bool \fBisValid\fP () const " .br .ti -1c .RI "int \fBknobWidth\fP () const " .br .ti -1c .RI "virtual double \fBmass\fP () const " .br .ti -1c .RI "double \fBmaxValue\fP () const " .br .ti -1c .RI "virtual QSize \fBminimumSizeHint\fP () const " .br .ti -1c .RI "double \fBminValue\fP () const " .br .ti -1c .RI "Qt::Orientation \fBorientation\fP () const " .br .ti -1c .RI "int \fBpageSize\fP () const " .br .ti -1c .RI "bool \fBperiodic\fP () const " .br .ti -1c .RI "\fBQwtKnob\fP (QWidget *parent=NULL)" .br .ti -1c .RI "const \fBQwtRoundScaleDraw\fP * \fBscaleDraw\fP () const " .br .ti -1c .RI "\fBQwtRoundScaleDraw\fP * \fBscaleDraw\fP ()" .br .ti -1c .RI "\fBQwtScaleEngine\fP * \fBscaleEngine\fP ()" .br .ti -1c .RI "const \fBQwtScaleEngine\fP * \fBscaleEngine\fP () const " .br .ti -1c .RI "const \fBQwtScaleMap\fP & \fBscaleMap\fP () const " .br .ti -1c .RI "int \fBscaleMaxMajor\fP () const " .br .ti -1c .RI "int \fBscaleMaxMinor\fP () const " .br .ti -1c .RI "void \fBsetAutoScale\fP ()" .br .ti -1c .RI "void \fBsetBorderWidth\fP (int bw)" .br .ti -1c .RI "void \fBsetKnobWidth\fP (int w)" .br .ti -1c .RI "virtual void \fBsetMass\fP (double val)" .br .ti -1c .RI "virtual void \fBsetOrientation\fP (Qt::Orientation o)" .br .ti -1c .RI "void \fBsetPeriodic\fP (bool tf)" .br .ti -1c .RI "void \fBsetRange\fP (double vmin, double vmax, double vstep=0.0, int pagesize=1)" .br .ti -1c .RI "void \fBsetScale\fP (const \fBQwtScaleDiv\fP &s)" .br .ti -1c .RI "void \fBsetScale\fP (double vmin, double vmax, double step=0.0)" .br .ti -1c .RI "void \fBsetScale\fP (const \fBQwtDoubleInterval\fP &, double step=0.0)" .br .ti -1c .RI "void \fBsetScaleDraw\fP (\fBQwtRoundScaleDraw\fP *)" .br .ti -1c .RI "void \fBsetScaleEngine\fP (\fBQwtScaleEngine\fP *)" .br .ti -1c .RI "void \fBsetScaleMaxMajor\fP (int ticks)" .br .ti -1c .RI "void \fBsetScaleMaxMinor\fP (int ticks)" .br .ti -1c .RI "void \fBsetStep\fP (double)" .br .ti -1c .RI "void \fBsetSymbol\fP (\fBSymbol\fP)" .br .ti -1c .RI "void \fBsetTotalAngle\fP (double angle)" .br .ti -1c .RI "void \fBsetTracking\fP (bool enable)" .br .ti -1c .RI "void \fBsetUpdateTime\fP (int t)" .br .ti -1c .RI "void \fBsetValid\fP (bool valid)" .br .ti -1c .RI "virtual QSize \fBsizeHint\fP () const " .br .ti -1c .RI "double \fBstep\fP () const " .br .ti -1c .RI "void \fBstopMoving\fP ()" .br .ti -1c .RI "\fBSymbol\fP \fBsymbol\fP () const " .br .ti -1c .RI "double \fBtotalAngle\fP () const " .br .ti -1c .RI "double \fBvalue\fP () const " .br .ti -1c .RI "virtual \fB~QwtKnob\fP ()" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "const \fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP () const " .br .ti -1c .RI "\fBQwtAbstractScaleDraw\fP * \fBabstractScaleDraw\fP ()" .br .ti -1c .RI "void \fBdraw\fP (QPainter *p, const QRect &ur)" .br .ti -1c .RI "void \fBdrawKnob\fP (QPainter *p, const QRect &r)" .br .ti -1c .RI "void \fBdrawMarker\fP (QPainter *p, double arc, const QColor &c)" .br .ti -1c .RI "double \fBexactPrevValue\fP () const " .br .ti -1c .RI "double \fBexactValue\fP () const " .br .ti -1c .RI "virtual void \fBkeyPressEvent\fP (QKeyEvent *e)" .br .ti -1c .RI "virtual void \fBmouseMoveEvent\fP (QMouseEvent *e)" .br .ti -1c .RI "double \fBmouseOffset\fP () const " .br .ti -1c .RI "virtual void \fBmousePressEvent\fP (QMouseEvent *e)" .br .ti -1c .RI "virtual void \fBmouseReleaseEvent\fP (QMouseEvent *e)" .br .ti -1c .RI "virtual void \fBpaintEvent\fP (QPaintEvent *e)" .br .ti -1c .RI "double \fBprevValue\fP () const " .br .ti -1c .RI "void \fBrescale\fP (double vmin, double vmax, double step=0.0)" .br .ti -1c .RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)" .br .ti -1c .RI "int \fBscrollMode\fP () const " .br .ti -1c .RI "void \fBsetAbstractScaleDraw\fP (\fBQwtAbstractScaleDraw\fP *)" .br .ti -1c .RI "void \fBsetMouseOffset\fP (double)" .br .ti -1c .RI "virtual void \fBsetPosition\fP (const QPoint &)" .br .ti -1c .RI "virtual void \fBstepChange\fP ()" .br .ti -1c .RI "virtual void \fBtimerEvent\fP (QTimerEvent *e)" .br .ti -1c .RI "virtual void \fBwheelEvent\fP (QWheelEvent *e)" .br .in -1c .SH "Detailed Description" .PP The Knob Widget. The \fBQwtKnob\fP widget imitates look and behaviour of a volume knob on a radio. It contains a scale around the knob which is set up automatically or can be configured manually (see \fBQwtAbstractScale\fP). Automatic scrolling is enabled when the user presses a mouse button on the scale. For a description of signals, slots and other members, see \fBQwtAbstractSlider\fP. .PP .PP \fBSee also:\fP .RS 4 \fBQwtAbstractSlider\fP and \fBQwtAbstractScale\fP for the descriptions of the inherited members. .RE .PP .SH "Member Enumeration Documentation" .PP .SS "enum \fBQwtAbstractSlider::ScrollMode\fP\fC [inherited]\fP"Scroll mode .PP \fBSee also:\fP .RS 4 \fBgetScrollMode()\fP .RE .PP .SS "enum \fBQwtKnob::Symbol\fP"Symbol .PP \fBSee also:\fP .RS 4 \fBQwtKnob::QwtKnob()\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "QwtKnob::QwtKnob (QWidget *parent = \fCNULL\fP)\fC [explicit]\fP"Constructor .PP \fBParameters:\fP .RS 4 \fIparent\fP Parent widget .RE .PP .SS "QwtKnob::~QwtKnob ()\fC [virtual]\fP" .PP Destructor. .SH "Member Function Documentation" .PP .SS "const \fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw () const\fC [protected, inherited]\fP"\fBReturns:\fP .RS 4 Scale draw .RE .PP \fBSee also:\fP .RS 4 \fBsetAbstractScaleDraw()\fP .RE .PP .SS "\fBQwtAbstractScaleDraw\fP * QwtAbstractScale::abstractScaleDraw ()\fC [protected, inherited]\fP"\fBReturns:\fP .RS 4 Scale draw .RE .PP \fBSee also:\fP .RS 4 \fBsetAbstractScaleDraw()\fP .RE .PP .SS "bool QwtAbstractScale::autoScale () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 \fCtrue\fP if autoscaling is enabled .RE .PP .SS "int QwtKnob::borderWidth () const" .PP Return the border width. .SS "void QwtKnob::draw (QPainter *painter, const QRect &rect)\fC [protected]\fP"Repaint the knob .PP \fBParameters:\fP .RS 4 \fIpainter\fP Painter .br \fIrect\fP Update rectangle .RE .PP .SS "void QwtKnob::drawKnob (QPainter *painter, const QRect &r)\fC [protected]\fP" .PP Draw the knob. \fBParameters:\fP .RS 4 \fIpainter\fP painter .br \fIr\fP Bounding rectangle of the knob (without scale) .RE .PP .SS "void QwtKnob::drawMarker (QPainter *p, doublearc, const QColor &c)\fC [protected]\fP" .PP Draw the marker at the knob's front. \fBParameters:\fP .RS 4 \fIp\fP Painter .br \fIarc\fP Angle of the marker .br \fIc\fP Marker color .RE .PP .SS "double QwtDoubleRange::exactPrevValue () const\fC [protected, inherited]\fP" .PP Returns the exact previous value. .SS "double QwtDoubleRange::exactValue () const\fC [protected, inherited]\fP" .PP Returns the exact value. The exact value is the value which \fBQwtDoubleRange::value\fP would return if the value were not adjusted to the step raster. It differs from the current value only if \fBQwtDoubleRange::fitValue\fP or \fBQwtDoubleRange::incValue\fP have been used before. This function is intended for internal use in derived classes. .SS "void QwtAbstractSlider::fitValue (doublevalue)\fC [virtual, slot, inherited]\fP" .PP Set the slider's value to the nearest integer multiple of the step size. \fBParameters:\fP .RS 4 \fIvalue\fP Value .RE .PP \fBSee also:\fP .RS 4 \fBsetValue()\fP, \fBincValue()\fP .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtDoubleRange::incPages (intnPages)\fC [virtual, inherited]\fP" .PP Increment the value by a specified number of pages. \fBParameters:\fP .RS 4 \fInPages\fP Number of pages to increment. A negative number decrements the value. .RE .PP \fBWarning:\fP .RS 4 The Page size is specified in the constructor. .RE .PP .SS "void QwtAbstractSlider::incValue (intsteps)\fC [virtual, slot, inherited]\fP" .PP Increment the value by a specified number of steps. \fBParameters:\fP .RS 4 \fIsteps\fP number of steps .RE .PP \fBSee also:\fP .RS 4 \fBsetValue()\fP .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "bool QwtAbstractSlider::isReadOnly () const\fC [inherited]\fP"In read only mode the slider can't be controlled by mouse or keyboard. .PP \fBReturns:\fP .RS 4 true if read only .RE .PP \fBSee also:\fP .RS 4 \fBsetReadOnly()\fP .RE .PP .SS "bool QwtAbstractSlider::isValid () const\fC [inline, inherited]\fP"\fBSee also:\fP .RS 4 QwtDblRange::isValid() .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtAbstractSlider::keyPressEvent (QKeyEvent *e)\fC [protected, virtual, inherited]\fP"Handles key events .PP .IP "\(bu" 2 Key_Down, KeyLeft .br Decrement by 1 .IP "\(bu" 2 Key_Up, Key_Right .br Increment by 1 .PP .PP \fBParameters:\fP .RS 4 \fIe\fP Key event .RE .PP \fBSee also:\fP .RS 4 \fBisReadOnly()\fP .RE .PP .PP Reimplemented in \fBQwtCompass\fP, and \fBQwtDial\fP. .SS "int QwtKnob::knobWidth () const" .PP Return the width of the knob. .SS "double QwtAbstractSlider::mass () const\fC [virtual, inherited]\fP"\fBReturns:\fP .RS 4 mass .RE .PP \fBSee also:\fP .RS 4 \fBsetMass()\fP .RE .PP .PP Reimplemented in \fBQwtWheel\fP. .SS "double QwtDoubleRange::maxValue () const\fC [inherited]\fP" .PP Returns the value of the second border of the range. maxValue returns the value which has been specified as the second parameter in \fBQwtDoubleRange::setRange\fP. .PP \fBSee also:\fP .RS 4 \fBsetRange()\fP .RE .PP .SS "QSize QwtKnob::minimumSizeHint () const\fC [virtual]\fP" .PP Return a minimum size hint. \fBWarning:\fP .RS 4 The return value of \fBQwtKnob::minimumSizeHint()\fP depends on the font and the scale. .RE .PP .SS "double QwtDoubleRange::minValue () const\fC [inherited]\fP" .PP Returns the value at the first border of the range. minValue returns the value which has been specified as the first parameter in \fBsetRange()\fP. .PP \fBSee also:\fP .RS 4 \fBsetRange()\fP .RE .PP .SS "void QwtAbstractSlider::mouseMoveEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Mouse Move Event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Mouse event .RE .PP .SS "void QwtAbstractSlider::mousePressEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Mouse press event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Mouse event .RE .PP .SS "void QwtAbstractSlider::mouseReleaseEvent (QMouseEvent *e)\fC [protected, virtual, inherited]\fP"Mouse Release Event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Mouse event .RE .PP .SS "Qt::Orientation QwtAbstractSlider::orientation () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Orientation .RE .PP \fBSee also:\fP .RS 4 \fBsetOrientation()\fP .RE .PP .SS "int QwtDoubleRange::pageSize () const\fC [inherited]\fP" .PP Returns the page size in steps. .SS "void QwtKnob::paintEvent (QPaintEvent *e)\fC [protected, virtual]\fP"Repaint the knob .PP \fBParameters:\fP .RS 4 \fIe\fP Paint event .RE .PP .SS "bool QwtDoubleRange::periodic () const\fC [inherited]\fP" .PP Returns true if the range is periodic. \fBSee also:\fP .RS 4 \fBsetPeriodic()\fP .RE .PP .SS "double QwtDoubleRange::prevValue () const\fC [protected, inherited]\fP" .PP Returns the previous value. .SS "void QwtAbstractScale::rescale (doublevmin, doublevmax, doublestepSize = \fC0.0\fP)\fC [protected, inherited]\fP"Recalculate the scale division and update the scale draw. .PP \fBParameters:\fP .RS 4 \fIvmin\fP Lower limit of the scale interval .br \fIvmax\fP Upper limit of the scale interval .br \fIstepSize\fP Major step size .RE .PP \fBSee also:\fP .RS 4 \fBscaleChange()\fP .RE .PP .SS "void QwtKnob::resizeEvent (QResizeEvent *e)\fC [protected, virtual]\fP"Qt Resize Event .SS "const \fBQwtRoundScaleDraw\fP * QwtKnob::scaleDraw () const"\fBReturns:\fP .RS 4 the scale draw of the knob .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleDraw()\fP .RE .PP .SS "\fBQwtRoundScaleDraw\fP * QwtKnob::scaleDraw ()"\fBReturns:\fP .RS 4 the scale draw of the knob .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleDraw()\fP .RE .PP .SS "const \fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Scale engine .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleEngine()\fP .RE .PP .SS "\fBQwtScaleEngine\fP * QwtAbstractScale::scaleEngine ()\fC [inherited]\fP"\fBReturns:\fP .RS 4 Scale engine .RE .PP \fBSee also:\fP .RS 4 \fBsetScaleEngine()\fP .RE .PP .SS "const \fBQwtScaleMap\fP & QwtAbstractScale::scaleMap () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 \fBabstractScaleDraw()\fP->\fBscaleMap()\fP .RE .PP .SS "int QwtAbstractScale::scaleMaxMajor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Max. number of major tick intervals The default value is 5. .RE .PP .SS "int QwtAbstractScale::scaleMaxMinor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Max. number of minor tick intervals The default value is 3. .RE .PP .SS "void QwtAbstractScale::setAbstractScaleDraw (\fBQwtAbstractScaleDraw\fP *scaleDraw)\fC [protected, inherited]\fP" .PP Set a scale draw. scaleDraw has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setAbstractScaleDraw. .SS "void QwtAbstractScale::setAutoScale ()\fC [inherited]\fP" .PP Advise the widget to control the scale range internally. Autoscaling is on by default. .PP \fBSee also:\fP .RS 4 \fBsetScale()\fP, \fBautoScale()\fP .RE .PP .SS "void QwtKnob::setBorderWidth (intbw)" .PP Set the knob's border width. \fBParameters:\fP .RS 4 \fIbw\fP new border width .RE .PP .SS "void QwtKnob::setKnobWidth (intw)" .PP Change the knob's width. The specified width must be >= 5, or it will be clipped. .PP \fBParameters:\fP .RS 4 \fIw\fP New width .RE .PP .SS "void QwtAbstractSlider::setMass (doubleval)\fC [virtual, inherited]\fP" .PP Set the slider's mass for flywheel effect. If the slider's mass is greater then 0, it will continue to move after the mouse button has been released. Its speed decreases with time at a rate depending on the slider's mass. A large mass means that it will continue to move for a long time. .PP Derived widgets may overload this function to make it public. .PP \fBParameters:\fP .RS 4 \fIval\fP New mass in kg .RE .PP \fBSee also:\fP .RS 4 \fBmass()\fP .RE .PP .PP Reimplemented in \fBQwtWheel\fP. .SS "void QwtAbstractSlider::setOrientation (Qt::Orientationo)\fC [virtual, inherited]\fP" .PP Set the orientation. \fBParameters:\fP .RS 4 \fIo\fP Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. .RE .PP .PP Reimplemented in \fBQwtSlider\fP, and \fBQwtWheel\fP. .SS "void QwtDoubleRange::setPeriodic (booltf)\fC [inherited]\fP" .PP Make the range periodic. When the range is periodic, the value will be set to a point inside the interval such that .PP .PP .nf point = value + n * width .fi .PP .PP if the user tries to set a new value which is outside the range. If the range is nonperiodic (the default), values outside the range will be clipped. .PP \fBParameters:\fP .RS 4 \fItf\fP true for a periodic range .RE .PP .SS "void QwtAbstractSlider::setPosition (const QPoint &p)\fC [protected, virtual, inherited]\fP"Move the slider to a specified point, adjust the value and emit signals if necessary. .SS "void QwtDoubleRange::setRange (doublevmin, doublevmax, doublevstep = \fC0.0\fP, intpageSize = \fC1\fP)\fC [inherited]\fP" .PP Specify range and step size. \fBParameters:\fP .RS 4 \fIvmin\fP lower boundary of the interval .br \fIvmax\fP higher boundary of the interval .br \fIvstep\fP step width .br \fIpageSize\fP page size in steps .RE .PP \fBWarning:\fP .RS 4 .PD 0 .IP "\(bu" 2 A change of the range changes the value if it lies outside the new range. The current value will *not* be adjusted to the new step raster. .IP "\(bu" 2 vmax < vmin is allowed. .IP "\(bu" 2 If the step size is left out or set to zero, it will be set to 1/100 of the interval length. .IP "\(bu" 2 If the step size has an absurd value, it will be corrected to a better one. .PP .RE .PP .SS "void QwtAbstractSlider::setReadOnly (boolreadOnly)\fC [virtual, slot, inherited]\fP"En/Disable read only mode .PP In read only mode the slider can't be controlled by mouse or keyboard. .PP \fBParameters:\fP .RS 4 \fIreadOnly\fP Enables in case of true .RE .PP \fBSee also:\fP .RS 4 \fBisReadOnly()\fP .RE .PP .SS "void QwtAbstractScale::setScale (const \fBQwtScaleDiv\fP &scaleDiv)\fC [inherited]\fP" .PP Specify a scale. Disable autoscaling and define a scale by a scale division .PP \fBParameters:\fP .RS 4 \fIscaleDiv\fP Scale division .RE .PP \fBSee also:\fP .RS 4 \fBsetAutoScale()\fP .RE .PP .SS "void QwtAbstractScale::setScale (doublevmin, doublevmax, doublestepSize = \fC0.0\fP)\fC [inherited]\fP" .PP Specify a scale. Disable autoscaling and define a scale by an interval and a step size .PP \fBParameters:\fP .RS 4 \fIvmin\fP lower limit of the scale interval .br \fIvmax\fP upper limit of the scale interval .br \fIstepSize\fP major step size .RE .PP \fBSee also:\fP .RS 4 \fBsetAutoScale()\fP .RE .PP .SS "void QwtAbstractScale::setScale (const \fBQwtDoubleInterval\fP &interval, doublestepSize = \fC0.0\fP)\fC [inherited]\fP" .PP Specify a scale. Disable autoscaling and define a scale by an interval and a step size .PP \fBParameters:\fP .RS 4 \fIinterval\fP Interval .br \fIstepSize\fP major step size .RE .PP \fBSee also:\fP .RS 4 \fBsetAutoScale()\fP .RE .PP .SS "void QwtKnob::setScaleDraw (\fBQwtRoundScaleDraw\fP *scaleDraw)"Change the scale draw of the knob .PP For changing the labels of the scales, it is necessary to derive from \fBQwtRoundScaleDraw\fP and overload \fBQwtRoundScaleDraw::label()\fP. .PP \fBSee also:\fP .RS 4 \fBscaleDraw()\fP .RE .PP .SS "void QwtAbstractScale::setScaleEngine (\fBQwtScaleEngine\fP *scaleEngine)\fC [inherited]\fP" .PP Set a scale engine. The scale engine is responsible for calculating the scale division, and in case of auto scaling how to align the scale. .PP scaleEngine has to be created with new and will be deleted in ~QwtAbstractScale or the next call of setScaleEngine. .SS "void QwtAbstractScale::setScaleMaxMajor (intticks)\fC [inherited]\fP" .PP Set the maximum number of major tick intervals. The scale's major ticks are calculated automatically such that the number of major intervals does not exceed ticks. The default value is 5. .PP \fBParameters:\fP .RS 4 \fIticks\fP maximal number of major ticks. .RE .PP \fBSee also:\fP .RS 4 \fBQwtAbstractScaleDraw\fP .RE .PP .SS "void QwtAbstractScale::setScaleMaxMinor (intticks)\fC [inherited]\fP" .PP Set the maximum number of minor tick intervals. The scale's minor ticks are calculated automatically such that the number of minor intervals does not exceed ticks. The default value is 3. .PP \fBParameters:\fP .RS 4 \fIticks\fP .RE .PP \fBSee also:\fP .RS 4 \fBQwtAbstractScaleDraw\fP .RE .PP .SS "void QwtDoubleRange::setStep (doublevstep)\fC [inherited]\fP" .PP Change the step raster. \fBParameters:\fP .RS 4 \fIvstep\fP new step width .RE .PP \fBWarning:\fP .RS 4 The value will \fInot\fP be adjusted to the new step raster. .RE .PP .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtKnob::setSymbol (\fBQwtKnob::Symbol\fPs)" .PP Set the symbol of the knob. \fBSee also:\fP .RS 4 \fBsymbol()\fP .RE .PP .SS "void QwtKnob::setTotalAngle (doubleangle)" .PP Set the total angle by which the knob can be turned. \fBParameters:\fP .RS 4 \fIangle\fP Angle in degrees. .RE .PP The default angle is 270 degrees. It is possible to specify an angle of more than 360 degrees so that the knob can be turned several times around its axis. .SS "void QwtAbstractSlider::setTracking (boolenable)\fC [inherited]\fP" .PP Enables or disables tracking. If tracking is enabled, the slider emits a \fBvalueChanged()\fP signal whenever its value changes (the default behaviour). If tracking is disabled, the value changed() signal will only be emitted if: .PD 0 .IP "\(bu" 2 the user releases the mouse button and the value has changed or .IP "\(bu" 2 at the end of automatic scrolling. .PP Tracking is enabled by default. .PP \fBParameters:\fP .RS 4 \fIenable\fP \fCtrue\fP (enable) or \fCfalse\fP (disable) tracking. .RE .PP .SS "void QwtAbstractSlider::setUpdateTime (intt)\fC [inherited]\fP" .PP Specify the update interval for automatic scrolling. \fBParameters:\fP .RS 4 \fIt\fP update interval in milliseconds .RE .PP \fBSee also:\fP .RS 4 \fBgetScrollMode()\fP .RE .PP .SS "void QwtAbstractSlider::setValid (boolvalid)\fC [inline, inherited]\fP"\fBParameters:\fP .RS 4 \fIvalid\fP true/false .RE .PP \fBSee also:\fP .RS 4 QwtDblRange::isValid() .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "void QwtAbstractSlider::setValue (doubleval)\fC [virtual, slot, inherited]\fP" .PP Move the slider to a specified value. This function can be used to move the slider to a value which is not an integer multiple of the step size. .PP \fBParameters:\fP .RS 4 \fIval\fP new value .RE .PP \fBSee also:\fP .RS 4 \fBfitValue()\fP .RE .PP .PP Reimplemented from \fBQwtDoubleRange\fP. .SS "QSize QwtKnob::sizeHint () const\fC [virtual]\fP"\fBReturns:\fP .RS 4 \fBminimumSizeHint()\fP .RE .PP .SS "void QwtAbstractSlider::sliderMoved (doublevalue)\fC [signal, inherited]\fP"This signal is emitted when the user moves the slider with the mouse. .PP \fBParameters:\fP .RS 4 \fIvalue\fP new value .RE .PP .SS "void QwtAbstractSlider::sliderPressed ()\fC [signal, inherited]\fP"This signal is emitted when the user presses the movable part of the slider (start ScrMouse Mode). .SS "void QwtAbstractSlider::sliderReleased ()\fC [signal, inherited]\fP"This signal is emitted when the user releases the movable part of the slider. .SS "double QwtDoubleRange::step () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 the step size .RE .PP \fBSee also:\fP .RS 4 \fBsetStep()\fP, \fBsetRange()\fP .RE .PP .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtDoubleRange::stepChange ()\fC [protected, virtual, inherited]\fP" .PP Notify a change of the step size. This virtual function is called whenever the step size changes. The default implementation does nothing. .SS "void QwtAbstractSlider::stopMoving ()\fC [inherited]\fP" .PP Stop updating if automatic scrolling is active. .SS "\fBQwtKnob::Symbol\fP QwtKnob::symbol () const"\fBReturns:\fP .RS 4 symbol of the knob .RE .PP \fBSee also:\fP .RS 4 \fBsetSymbol()\fP .RE .PP .SS "void QwtAbstractSlider::timerEvent (QTimerEvent *e)\fC [protected, virtual, inherited]\fP"Qt timer event .PP \fBParameters:\fP .RS 4 \fIe\fP Timer event .RE .PP .SS "double QwtKnob::totalAngle () const" .PP Return the total angle. .SS "double QwtDoubleRange::value () const\fC [inherited]\fP" .PP Returns the current value. .PP Reimplemented in \fBQwtCounter\fP. .SS "void QwtAbstractSlider::valueChanged (doublevalue)\fC [signal, inherited]\fP" .PP Notify a change of value. In the default setting (tracking enabled), this signal will be emitted every time the value changes ( see \fBsetTracking()\fP ). .PP \fBParameters:\fP .RS 4 \fIvalue\fP new value .RE .PP .SS "void QwtAbstractSlider::wheelEvent (QWheelEvent *e)\fC [protected, virtual, inherited]\fP"Wheel Event handler .PP \fBParameters:\fP .RS 4 \fIe\fP Whell event .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.