API Documentation
Loading...
Searching...
No Matches
QCustomDial Class Reference

Provides a rounded range control (like a speedometer or potentiometer). More...

#include <QCustomDial.h>

Inheritance diagram for QCustomDial:
[legend]
Collaboration diagram for QCustomDial:
[legend]

Public Slots

void setValue (fltp08 value)
 

Signals

void edited ()
 

Public Member Functions

void addIcon (const DialIcon &icon)
 
void addIcon (const String &icon, bool show_full_icon, bool rotate_icon)
 
QCustomLineEditcenterLineEdit ()
 
void clearIcons ()
 
bool event (QEvent *event) override
 
fltp08 getValue ()
 
int heightForWidth (int w) const override
 
const Buffer< DialIcon > & icons () const
 
void keyPressEvent (QKeyEvent *event) override
 
QSize minimumSizeHint () const override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
 QCustomDial (QWidget *parent=nullptr)
 
void resizeEvent (QResizeEvent *event) override
 
void setColor (const RGBColor &color)
 
void setGrip (fltp04 grip_size)
 
void setIcon (const QPixmap &map, bool show_full_icon, bool rotate_icon)
 
void setIcons (const Buffer< DialIcon > &icons)
 
void setMaxValue (fltp08 max)
 
void setMinValue (fltp08 min)
 
void showLineEdit (bool show)
 
QSize sizeHint () const override
 
void tieToLineEdit (QCustomLineEdit *edit, bool is_offset=false)
 
void wheelEvent (QWheelEvent *e) override
 
 ~QCustomDial ()
 

Protected Slots

void onValueChanged ()
 

Detailed Description

Provides a rounded range control (like a speedometer or potentiometer).


QCustomDial is used when the user needs to control a value within a program-definable range, and the range either wraps around (for example, with angles measured from 0 to 359 degrees) or the dialog layout needs a square widget.

Contains logic for adding one or more images to the dial that may or may not rotate with the dial.

Constructor & Destructor Documentation

◆ QCustomDial()

QCustomDial ( QWidget * parent = nullptr)

◆ ~QCustomDial()

Member Function Documentation

◆ addIcon() [1/2]

void addIcon ( const DialIcon & icon)

◆ addIcon() [2/2]

void addIcon ( const String & icon,
bool show_full_icon,
bool rotate_icon )

◆ centerLineEdit()

QCustomLineEdit * centerLineEdit ( )

◆ clearIcons()

void clearIcons ( )

◆ edited

void edited ( )
signal

◆ event()

bool event ( QEvent * event)
override

◆ getValue()

fltp08 getValue ( )

◆ heightForWidth()

int heightForWidth ( int w) const
inlineoverride

◆ icons()

const Buffer< DialIcon > & icons ( ) const
inline

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent * event)
override

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent * event)
override

◆ mousePressEvent()

void mousePressEvent ( QMouseEvent * event)
override

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QMouseEvent * event)
override

◆ onValueChanged

void onValueChanged ( )
protectedslot

◆ paintEvent()

void paintEvent ( QPaintEvent * event)
override

◆ resizeEvent()

void resizeEvent ( QResizeEvent * event)
override

◆ setColor()

void setColor ( const RGBColor & color)

◆ setGrip()

void setGrip ( fltp04 grip_size)
inline

◆ setIcon()

void setIcon ( const QPixmap & map,
bool show_full_icon,
bool rotate_icon )

◆ setIcons()

void setIcons ( const Buffer< DialIcon > & icons)

◆ setMaxValue()

void setMaxValue ( fltp08 max)

◆ setMinValue()

void setMinValue ( fltp08 min)

◆ setValue

void setValue ( fltp08 value)
slot

◆ showLineEdit()

void showLineEdit ( bool show)

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ tieToLineEdit()

void tieToLineEdit ( QCustomLineEdit * edit,
bool is_offset = false )

◆ wheelEvent()

void wheelEvent ( QWheelEvent * e)
override

The documentation for this class was generated from the following file: