20class Q_WIDGETS_EXPORT
QDial:
public QAbstractSlider
24 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping)
25 Q_PROPERTY(
int notchSize READ notchSize)
26 Q_PROPERTY(qreal notchTarget READ notchTarget WRITE setNotchTarget)
27 Q_PROPERTY(
bool notchesVisible READ notchesVisible WRITE setNotchesVisible)
29 explicit QDial(QWidget *parent =
nullptr);
33 bool wrapping()
const;
35 int notchSize()
const;
37 void setNotchTarget(
double target);
38 qreal notchTarget()
const;
39 bool notchesVisible()
const;
41 QSize sizeHint()
const override;
42 QSize minimumSizeHint()
const override;
45 void setNotchesVisible(
bool visible);
46 void setWrapping(
bool on);
49 bool event(QEvent *e) override;
50 void resizeEvent(QResizeEvent *re) override;
51 void paintEvent(QPaintEvent *pe) override;
53 void mousePressEvent(QMouseEvent *me) override;
54 void mouseReleaseEvent(QMouseEvent *me) override;
55 void mouseMoveEvent(QMouseEvent *me) override;
57 void sliderChange(SliderChange change) override;
58 virtual void initStyleOption(QStyleOptionSlider *option)
const;
62 Q_DECLARE_PRIVATE(QDial)