QwtDialSimpleNeedle(3)

QwtDialSimpleNeedle(3) πŸ’…

okay bestie, welcome to the Library Functions Manual page for QwtDialSimpleNeedle(3) β€” yes, the manual name is literally β€œLibrary Functions Manual,” and we’re folding that in right here at the top like a cute little name tag πŸŽ€. This is the Qwt User’s Guide glow-up of a needle for dial widgets, and it’s giving main character energy ✨.


✨ NAME ✨

QwtDialSimpleNeedle β€” a needle for dial widgets. That’s it, that’s the vibe πŸͺ‘πŸ’–.


🌸 SYNOPSIS 🌸

#include <qwt_dial_needle.h>

Inherits QwtDialNeedle.

So yeah, it’s part of the QwtDialNeedle family tree, no cap 🌈.

πŸŽ€ Public Types

enum Style { Arrow, Ray }

Style of the needle. Lowkey important, highkey aesthetic πŸ’….

πŸ’– Public Member Functions

QwtDialSimpleNeedle (Style, bool hasKnob=true, const QColor
    &mid=Qt::gray, const QColor &base=Qt::darkGray)
void setWidth (double width)
double width () const

These are the public moves, bestie β€” constructor, set width, get width. Periodt 🫢.

🌟 Public Member Functions inherited from QwtDialNeedle

  • QwtDialNeedle () β€” Constructor.
  • virtual ~QwtDialNeedle () β€” Destructor.
  • virtual void setPalette (const QPalette &)
  • const QPalette & palette () const
  • virtual void draw (QPainter *, const QPointF &center, double length, double direction, QPalette::ColorGroup=QPalette::Active) const

All that inherited goodness is still part of the package, okay? πŸ’œ

πŸ¦‹ Protected Member Functions

virtual void drawNeedle (QPainter *, double length,
    QPalette::ColorGroup) const override

Protected, override, and doing the actual needle-drawing duties. Iconic πŸ”₯.

🧚 Protected Member Functions inherited from QwtDialNeedle

virtual void drawKnob (QPainter *, double width, const QBrush &, bool
    sunken) const

Draw the knob. That’s the inherited protected helper, and yes, it said β€œknob” πŸ˜­πŸŽ€.


πŸ“ Detailed Description πŸ“

A needle for dial widgets. Simple, iconic, very β€œI’m on a dial and I know it” πŸ’….

The following colors are used:

  • QPalette::Mid β€” Pointer
  • QPalette::Base β€” Knob

See also: QwtDial, QwtCompass.

Definition at line 81 of file qwt_dial_needle.h.


🧚 Member Enumeration Documentation 🧚

enum QwtDialSimpleNeedle::Style

Style of the needle. We love a style moment ✨.

Enumerator

  • Arrow β€” Arrow.
  • Ray β€” A straight line from the center.

Definition at line 85 of file qwt_dial_needle.h.


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

QwtDialSimpleNeedle::QwtDialSimpleNeedle

QwtDialSimpleNeedle::QwtDialSimpleNeedle (Style style, bool hasKnob = true,
    const QColor & mid = Qt::gray, const QColor & base = Qt::darkGray)

Constructor. The birth of a needle, honestly 🫢.

Parameters:

  • style β€” Style
  • hasKnob β€” With/Without knob
  • mid β€” Middle color
  • base β€” Base color

Definition at line 273 of file qwt_dial_needle.cpp.


πŸ’… Member Function Documentation πŸ’…

drawNeedle

void QwtDialSimpleNeedle::drawNeedle (QPainter * painter, double length,
    QPalette::ColorGroup colorGroup) const [override],  [protected],
    [virtual]

Draw the needle. This is the protected virtual override moment, and it ate πŸ”₯.

Parameters:

  • painter β€” Painter
  • length β€” Length of the needle
  • colorGroup β€” Color group, used for painting

Implements QwtDialNeedle.

Definition at line 312 of file qwt_dial_needle.cpp.

setWidth

void QwtDialSimpleNeedle::setWidth (double width)

Set the width of the needle. Width queens, rise πŸ™ˆ.

Parameters:

  • width β€” Width

See also: width().

Definition at line 291 of file qwt_dial_needle.cpp.

width

double QwtDialSimpleNeedle::width () const

Returns the width of the needle. Very demure, very const, very β€œtell me my width” πŸ’–.

See also: setWidth().

Definition at line 300 of file qwt_dial_needle.cpp.


🌈 Author 🌈

Generated automatically by Doxygen for Qwt User's Guide from the source code.

source/version vibes: Qwt User’s Guide 🫢 β€” date: the footer didn’t hand me one, so I’m not inventing it, bestie. No cap, no fake dates, just cute docs energy. Mwah πŸ’–πŸŽ€

πŸ“¦ where this page comes from