QwtWheel(3)

πŸ“¦ version 5.2.3a, in epel 9, fedora 43, fedora 44

πŸ’– 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 () const
  • double mass () const
  • virtual QSize minimumSizeHint () const
  • void 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 () const
  • int tickCnt () const
  • double totalAngle () const
  • double 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::Horizontal and Qt::Vertical. Defaults to Qt::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