QwtDialNeedle(3)

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

✨ QwtDialNeedle(3) ✨

okay bestie, welcome to the Qwt User's Guide πŸ’– this one's all about QwtDialNeedle and honestly? it's giving "abstract queen who does nothing herself but everyone else is her understudy" πŸ‘‘


🌸 NAME 🌸

QwtDialNeedle β€” (the description here is literally blank in the original, no cap, she said "figure it out" πŸ’€)


πŸŽ€ SYNOPSIS πŸŽ€

#include <qwt_dial_needle.h>

Inherited by QwtCompassMagnetNeedle, QwtCompassWindArrow, and QwtDialSimpleNeedle. so she's the momager and these three are her clients 🫢

πŸ’… Public Member Functions πŸ’…

QwtDialNeedle ()
virtual ~QwtDialNeedle ()
virtual void draw (QPainter *painter, const QPoint &center, int length,
    double direction, QPalette::ColorGroup cg=QPalette::Active) const =0
const QPalette & palette () const
virtual void setPalette (const QPalette &)

🧚 Static Protected Member Functions 🧚

static void drawKnob (QPainter *, const QPoint &pos, int width, const
    QBrush &, bool sunken)

πŸ‘‘ Detailed Description πŸ‘‘

so like, QwtDialNeedle is the base class for needles that can be used in a QwtDial. she's the blueprint, the blueprint-iest blueprint, periodt.

A QwtDialNeedle is a pointer that indicates a value by pointing to a specific direction. that's it, that's her whole job, and she does it flawlessly πŸ’…

real talk though: Qwt is missing a set of good looking needles. Contributions are very welcome. β€” yes bestie they literally put a call for help in the docs 😭 if you've got a cute needle design, the maintainers are begging, this is your main character moment, go submit it 🫢

See also:

  • QwtDial
  • QwtCompass

πŸ“– Member Function Documentation πŸ“–

🌈 virtual void QwtDialNeedle::draw (QPainter *painter, const QPoint &center, int length, double direction, QPalette::ColorGroup cg = QPalette::Active) const [pure virtual]

Draw the needle. she's pure virtual so like, she cannot do this herself, the children have to show up and perform, no skipping rehearsal 🎭

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
  • cg β€” Color group, used for painting

Implemented in QwtCompassWindArrow, QwtCompassMagnetNeedle, and QwtDialSimpleNeedle. those are the ones who actually ate πŸ”₯


🌸 const QPalette & QwtDialNeedle::palette () const

Returns:

  • the palette of the needle.

just hands you the palette, no drama, no notes, a queen who answers your texts promptly πŸ’–


πŸ¦‹ void QwtDialNeedle::setPalette (const QPalette &palette) [virtual]

Sets the palette for the needle. glow-up time ✨

Parameters:

  • palette β€” New Palette

πŸ“ Author πŸ“

Generated automatically by Doxygen for Qwt User's Guide from the source code. (so nobody hand-wrote this, a robot did, and honestly the robot did fine πŸ™ˆ)


and that's the whole page bestie, you're so welcome πŸ’œ

Version 5.2.3 β€” Tue Nov 20 2012 β€” QwtDialNeedle(3) ⭐ mwah, go point at something with confidence πŸ‘‘

πŸ“¦ where this page comes from