QwtWheel(3)
π QwtWheel π
okay bestie, pull up a chair, we're reading the Qwt User's Guide together and this one is genuinely one of my faves. it's the manual page for QwtWheel, and yeah, the NAME line is literally just the class name, so that's the whole vibe: QwtWheel, no cap. β¨
π NAME π
QwtWheel β that's it, that's the name. she's an icon, she needs no further introduction. π
πΈ SYNOPSIS πΈ
#include <qwt_wheel.h>
Inherits QwtAbstractSlider.
so she's part of the slider family tree, she just looks cuter doing it. π¦
β¨ Public Member Functions β¨
QwtWheel (QWidget *parent=NULL)virtual ~QwtWheel ()int internalBorder () constdouble mass () constvirtual QSize minimumSizeHint () constvoid setInternalBorder (int width)void setMass (double val)virtual void setOrientation (Qt::Orientation)void setTickCnt (int cnt)void setTotalAngle (double angle)void setViewAngle (double angle)void setWheelWidth (int w)virtual QSize sizeHint () constint tickCnt () constdouble totalAngle () constdouble viewAngle () const
π«Ά Protected Member Functions π«Ά
void draw (QPainter *, const QRect &)void drawWheel (QPainter *, const QRect &)void drawWheelBackground (QPainter *, const QRect &)virtual void getScrollMode (const QPoint &, int &scrollMode, int &direction)virtual double getValue (const QPoint &)void layoutWheel (bool update=true)virtual void paintEvent (QPaintEvent *e)virtual void paletteChange (const QPalette &)virtual void resizeEvent (QResizeEvent *e)void setColorArray ()virtual void valueChange ()
π Additional Inherited Members π
there's a whole extra section of stuff she inherits from QwtAbstractSlider, and the original page doesn't itemize it here, so we're not gonna make anything up. moving on, bestie. π
π Detailed Description π
The Wheel Widget.
The wheel widget can be used to change values over a very large range in very small steps. Using the setMass member, it can be configured as a flywheel. yes, like, a physical flywheel, she has momentum. main character energy fr fr. π₯
See also:
- The radio example.
π Member Function Documentation π
π void QwtWheel::draw (QPainter *painter, const QRect &) β [protected]
Redraw panel and wheel.
Parameters:
- painter β Painter
π void QwtWheel::drawWheel (QPainter *painter, const QRect &r) β [protected]
Redraw the wheel.
Parameters:
- painter β painter
- r β contents rectangle
π void QwtWheel::drawWheelBackground (QPainter *painter, const QRect &r) β [protected]
Draw the Wheel's background gradient. β¨ (gradient!! we love a gradient!!)
Parameters:
- painter β Painter
- r β Bounding rectangle
π void QwtWheel::getScrollMode (const QPoint &p, int &scrollMode, int &direction) β [protected], [virtual]
Determine the scrolling mode and direction corresponding to a specified point.
Parameters:
- p β point
- scrollMode β scrolling mode
- direction β direction
Implements QwtAbstractSlider.
π int QwtWheel::internalBorder () const
Returns:
- Internal border width of the wheel.
See also:
setInternalBorder()
π double QwtWheel::mass () const β [virtual]
Returns:
- mass
Reimplemented from QwtAbstractSlider.
π QSize QwtWheel::minimumSizeHint () const β [virtual]
Return a minimum size hint.
β οΈ Warning: The return value is based on the wheel width.
π void QwtWheel::setInternalBorder (int w)
Set the internal border width of the wheel. The internal border must not be smaller than 1 and is limited in dependence on the wheel's size. Values outside the allowed range will be clipped. βοΈ
The internal border defaults to 2.
Parameters:
- w β border width
See also:
internalBorder()
π void QwtWheel::setMass (double val) β [virtual]
Set the mass of the wheel. Assigning a mass turns the wheel into a flywheel. π
Parameters:
- val β the wheel's mass
Reimplemented from QwtAbstractSlider.
π void QwtWheel::setOrientation (Qt::Orientation o) β [virtual]
Set the wheel's orientation.
Parameters:
- o β Orientation. Allowed values are
Qt::HorizontalandQt::Vertical. Defaults toQt::Horizontal.
See also:
QwtAbstractSlider::orientation()
Reimplemented from QwtAbstractSlider.
π void QwtWheel::setTickCnt (int cnt)
Adjust the number of grooves in the wheel's surface. The number of grooves is limited to 6 <= cnt <= 50. Values outside this range will be clipped. The default value is 10.
Parameters:
- cnt β Number of grooves per 360 degrees
See also:
tickCnt()
π void QwtWheel::setTotalAngle (double angle)
Set the total angle which the wheel can be turned. One full turn of the wheel corresponds to an angle of 360 degrees. A total angle of n*360 degrees means that the wheel has to be turned n times around its axis to get from the minimum value to the maximum value.
The default setting of the total angle is 360 degrees.
Parameters:
- angle β total angle in degrees
See also:
totalAngle()
π void QwtWheel::setViewAngle (double angle)
Specify the visible portion of the wheel. You may use this function for fine-tuning the appearance of the wheel. The default value is 175 degrees. The value is limited from 10 to 175 degrees.
Parameters:
- angle β Visible angle in degrees
See also:
viewAngle(),setTotalAngle()
π void QwtWheel::setWheelWidth (int w)
Set the width of the wheel. Corresponds to the wheel height for horizontal orientation, and the wheel width for vertical orientation.
Parameters:
- w β the wheel's width
π QSize QwtWheel::sizeHint () const β [virtual]
Returns:
- a size hint
π int QwtWheel::tickCnt () const
Returns:
- Number of grooves in the wheel's surface.
See also:
setTickCnt()
π double QwtWheel::totalAngle () const
Returns:
- Total angle which the wheel can be turned.
See also:
setTotalAngle()
π double QwtWheel::viewAngle () const
Returns:
- Visible portion of the wheel
See also:
setViewAngle(),totalAngle()
β Author β
Generated automatically by Doxygen for Qwt User's Guide from the source code. (yes bestie, a robot wrote the original, and now I'm re-telling it to you with feeling. slay.)
and that's the whole page, periodt. π this was Version 5.2.3, dated Tue Nov 20 2012 β so yeah, she's an elder icon and she still ate. πβ¨π¦ ngl I'm obsessed with her. bye bestie, go spin a wheel. πππ
π¦ where this page comes from
- epel 9: qwt5-qt5-devel 5.2.3a-12.20210522gita2b11e3.el9 Β· LGPLv2+ with exceptions
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 43: qwt5-qt5-devel 5.2.3a-22.20210522gita2b11e3.fc43 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- fedora 44: qwt5-qt5-devel 5.2.3a-23.20210522gita2b11e3.fc44 Β· LGPL-2.1-or-later WITH Qwt-exception-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms