logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtDialSimpleNeedle - A needle for dial widgets.

Author

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

Version 6.1.4                                    Wed Jan 2 2019                           QwtDialSimpleNeedle(3)

Constructor & Destructor Documentation

QwtDialSimpleNeedle::QwtDialSimpleNeedle(Stylestyle,boolhasKnob=true,constQColor&mid=Qt::gray,constQColor&base=Qt::darkGray)
       Constructor

       Parameters:style Style
           hasKnob With/Without knob
           mid Middle color
           base Base color

Detailed Description

       A needle for dial widgets.

       The following colors are used:

       • QPalette::Mid
          Pointer

       • QPalette::Base
          Knob

       Seealso:QwtDial, QwtCompass

Member Enumeration Documentation

enumQwtDialSimpleNeedle::Style
       Style of the needle.

       EnumeratorArrow  Arrow.

       Ray    A straight line from the center.

Member Function Documentation

voidQwtDialSimpleNeedle::drawNeedle(QPainter*painter,doublelength,QPalette::ColorGroupcolorGroup)const[protected],[virtual]
       Draw the needle

       Parameters:painter Painter
           length Length of the needle
           colorGroup Color group, used for painting

       Implements QwtDialNeedle.

   voidQwtDialSimpleNeedle::setWidth(doublewidth)
       Set the width of the needle

       Parameters:width Width

       Seealso:width()doubleQwtDialSimpleNeedle::width()constReturns:
           the width of the needle

       Seealso:setWidth()

Name

       QwtDialSimpleNeedle - A needle for dial widgets.

Synopsis

       #include <qwt_dial_needle.h>

       Inherits QwtDialNeedle.

   PublicTypes
       enum Style { Arrow, Ray }
           Style of the needle.

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

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

See Also