intQwtSlider::borderWidth()constReturns:
the border width.
Seealso:setBorderWidth()voidQwtSlider::changeEvent(QEvent*event)[protected],[virtual]
Handles QEvent::StyleChange and QEvent::FontChange events
Parameters:event Change event
voidQwtSlider::drawHandle(QPainter*painter,constQRect&handleRect,intpos)const[protected],[virtual]
Draw the thumb at a position
Parameters:painter Painter
handleRect Bounding rectangle of the handle
pos Position of the handle marker in widget coordinates
voidQwtSlider::drawSlider(QPainter*painter,constQRect&sliderRect)const[protected],[virtual]
Draw the slider into the specified rectangle.
Parameters:painter Painter
sliderRect Bounding rectangle of the slider
QRectQwtSlider::handleRect()const[protected]Returns:
Bounding rectangle of the slider handle
QSizeQwtSlider::handleSize()constReturns:
Size of the handle.
Seealso:setHandleSize()boolQwtSlider::hasGroove()constReturns:
True, when the groove is visisble
Seealso:setGroove(), hasTrough()boolQwtSlider::hasTrough()constReturns:
True, when the trough is visisble
Seealso:setTrough(), hasGroove()boolQwtSlider::isScrollPosition(constQPoint&pos)const[protected],[virtual]
Determine what to do when the user presses a mouse button.
Parameters:pos Mouse position
Returnvalues:True,whenhandleRect() contains pos
Seealso:scrolledTo()
Implements QwtAbstractSlider.
QSizeQwtSlider::minimumSizeHint()const[virtual]Returns:
Minimum size hint
Seealso:sizeHint()voidQwtSlider::mousePressEvent(QMouseEvent*event)[protected],[virtual]
Mouse press event handler
Parameters:event Mouse event
Reimplemented from QwtAbstractSlider.
voidQwtSlider::mouseReleaseEvent(QMouseEvent*event)[protected],[virtual]
Mouse release event handler
Parameters:event Mouse event
Reimplemented from QwtAbstractSlider.
Qt::OrientationQwtSlider::orientation()constReturns:
Orientation
Seealso:setOrientation()voidQwtSlider::paintEvent(QPaintEvent*event)[protected],[virtual]
Qt paint event handler
Parameters:event Paint event
voidQwtSlider::resizeEvent(QResizeEvent*event)[protected],[virtual]
Qt resize event handler
Parameters:event Resize event
constQwtScaleDraw*QwtSlider::scaleDraw()constReturns:
the scale draw of the slider
Seealso:setScaleDraw()QwtSlider::ScalePositionQwtSlider::scalePosition()constReturns:
Position of the scale
Seealso:setScalePosition()doubleQwtSlider::scrolledTo(constQPoint&pos)const[protected],[virtual]
Determine the value for a new position of the slider handle.
Parameters:pos Mouse position
Returns:
Value for the mouse position
Seealso:isScrollPosition()
Implements QwtAbstractSlider.
voidQwtSlider::setBorderWidth(intwidth)
Change the slider's border width. The border width is used for drawing the slider handle and the trough.
Parameters:width Border width
Seealso:borderWidth()voidQwtSlider::setGroove(boolon)
En/Disable the groove
The slider can be cutomized by showing a groove for the handle.
Parameters:on When true, the groove is visible
Seealso:hasGroove(), setThrough()
voidQwtSlider::setHandleSize(constQSize&size)
Set the slider's handle size. When the size is empty the slider handle will be painted with a default
size depending on its orientation() and backgroundStyle().
Parameters:size New size
Seealso:handleSize()voidQwtSlider::setOrientation(Qt::Orientationorientation)
Set the orientation.
Parameters:orientation Allowed values are Qt::Horizontal and Qt::Vertical.
Seealso:orientation(), scalePosition()voidQwtSlider::setScaleDraw(QwtScaleDraw*scaleDraw)
Set a scale draw. For changing the labels of the scales, it is necessary to derive from QwtScaleDraw and
overload QwtScaleDraw::label().
Parameters:scaleDraw ScaleDraw object, that has to be created with new and will be deleted in ~QwtSlider() or
the next call of setScaleDraw().
Seealso:
scaleDraw()
voidQwtSlider::setScalePosition(ScalePositionscalePosition)
Change the position of the scale.
Parameters:scalePosition Position of the scale.
Seealso:ScalePosition, scalePosition()voidQwtSlider::setSpacing(intspacing)
Change the spacing between trough and scale. A spacing of 0 means, that the backbone of the scale is
covered by the trough.
The default setting is 4 pixels.
Parameters:spacing Number of pixels
Seealso:spacing();
voidQwtSlider::setTrough(boolon)
En/Disable the trough
The slider can be cutomized by showing a trough for the handle.
Parameters:on When true, the groove is visible
Seealso:hasTrough(), setGroove()voidQwtSlider::setUpdateInterval(intinterval)
Specify the update interval for automatic scrolling. The minimal accepted value is 50 ms.
Parameters:interval Update interval in milliseconds
Seealso:setUpdateInterval()QSizeQwtSlider::sizeHint()const[virtual]Returns:minimumSizeHint()QRectQwtSlider::sliderRect()const[protected]Returns:
Bounding rectangle of the slider - without the scale
intQwtSlider::spacing()constReturns:
Number of pixels between slider and scale
Seealso:setSpacing()voidQwtSlider::timerEvent(QTimerEvent*event)[protected],[virtual]
Timer event handler
Handles the timer, when the mouse stays pressed inside the sliderRect().
Parameters:event Mouse event
intQwtSlider::updateInterval()constReturns:
Update interval in milliseconds for automatic scrolling
Seealso:setUpdateInterval()