QwtDialSimpleNeedle(3)
π QwtDialSimpleNeedle π
okay bestie, welcome to the Qwt User's Guide β¨ β this is the manual page for QwtDialSimpleNeedle, and yes she's a whole vibe. grab a strawberry π and let's get into it.
πΈ NAME πΈ
QwtDialSimpleNeedle β
(no cap, that's literally all the original says here, she's mysterious like that π )
β¨ SYNOPSIS β¨
#include <qwt_dial_needle.h>
Inherits QwtDialNeedle. π
π Public Types
enum Style { Arrow, Ray }
π Public Member Functions
QwtDialSimpleNeedle (Style, bool hasKnob=true, const QColor
&mid=Qt::gray, const QColor &base=Qt::darkGray)
virtual void draw (QPainter *, const QPoint &, int length, double
direction, QPalette::ColorGroup=QPalette::Active) const
void setWidth (int width)
int width () const
π Static Public Member Functions
static void drawArrowNeedle (QPainter *, const QPalette &,
QPalette::ColorGroup, const QPoint &, int length, int width, double
direction, bool hasKnob)
static void drawRayNeedle (QPainter *, const QPalette &,
QPalette::ColorGroup, const QPoint &, int length, int width, double
direction, bool hasKnob)
π Additional Inherited Members
(there's more where that came from, she's got family π«Ά)
π Detailed Description π
A needle for dial widgets. That's the whole job, and she does it flawlessly, periodt. π
The following colors are used:
QColorGroup::Midβ the Pointer πQColorGroup::baseβ the Knob π
See also: QwtDial, QwtCompass β go check them out, they're giving main character energy too π¦
π Constructor & Destructor Documentation π
QwtDialSimpleNeedle::QwtDialSimpleNeedle (Style style, bool hasKnob = true, const QColor &mid = Qt::gray, const QColor &base = Qt::darkGray)
Constructor β¨ β she's born.
Parameters:
- style β Style
- hasKnob β With/Without knob
- mid β Middle color
- base β Base color
π Member Function Documentation π
void QwtDialSimpleNeedle::draw (QPainter *painter, const QPoint ¢er, int length, double direction, QPalette::ColorGroup colorGroup = QPalette::Active) const [virtual]
Draw the needle ποΈβ¨
Parameters:
- painter β Painter
- center β Center of the dial, start position for the needle
- length β Length of the needle
- direction β Direction of the needle, in degrees counter clockwise
- colorGroup β Color group, used for painting
Implements QwtDialNeedle. π
void QwtDialSimpleNeedle::drawArrowNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroup colorGroup, const QPoint ¢er, int length, int width, double direction, bool hasKnob) [static]
Draw a needle looking like an arrow πΉ β she's pointing, she's serving.
Parameters:
- painter β Painter
- palette β Palette
- colorGroup β Color group
- center β center of the needle
- length β Length of the needle
- width β Width of the needle
- direction β Current Direction
- hasKnob β With/Without knob
void QwtDialSimpleNeedle::drawRayNeedle (QPainter *painter, const QPalette &palette, QPalette::ColorGroup colorGroup, const QPoint ¢er, int length, int width, double direction, bool hasKnob) [static]
Draw a needle looking like a ray βοΈ β soft, radiant, iconic.
Parameters:
- painter β Painter
- palette β Palette
- colorGroup β Color group
- center β center of the needle
- length β Length of the needle
- width β Width of the needle
- direction β Current Direction
- hasKnob β With/Without knob
void QwtDialSimpleNeedle::setWidth (int width)
Set the width of the needle π β glow-up for the pointer.
Parameters:
- width β Width
See also: width()
int QwtDialSimpleNeedle::width () const
Returns: the width of the needle πΈ
See also: setWidth()
π¦ Author π¦
Generated automatically by Doxygen for Qwt User's Guide from the source code. (not me writing it by hand, she's algorithmically gorgeous fr fr πβ¨)
and that's the whole page bestie, no notes, she ate π
okay so final sign-off, iykyk: this is Version 5.2.3, dated Tue Nov 20 2012 π β yeah she's vintage, vintage is chic, obsessed. bye babe πππ«Ά
π¦ 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