API Documentation
|
Provides a rounded range control (like a speedometer or potentiometer). More...
#include <QCustomDial.h>
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) |
QCustomLineEdit * | centerLineEdit () |
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 () |
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.
QCustomDial | ( | QWidget * | parent = nullptr | ) |
~QCustomDial | ( | ) |
void addIcon | ( | const DialIcon & | icon | ) |
void addIcon | ( | const String & | icon, |
bool | show_full_icon, | ||
bool | rotate_icon ) |
QCustomLineEdit * centerLineEdit | ( | ) |
void clearIcons | ( | ) |
|
signal |
|
override |
fltp08 getValue | ( | ) |
|
inlineoverride |
|
override |
|
override |
|
override |
|
override |
|
override |
|
protectedslot |
|
override |
|
override |
void setColor | ( | const RGBColor & | color | ) |
|
inline |
void setIcon | ( | const QPixmap & | map, |
bool | show_full_icon, | ||
bool | rotate_icon ) |
void setMaxValue | ( | fltp08 | max | ) |
void setMinValue | ( | fltp08 | min | ) |
|
slot |
void showLineEdit | ( | bool | show | ) |
|
override |
void tieToLineEdit | ( | QCustomLineEdit * | edit, |
bool | is_offset = false ) |
|
override |