Skip to content

Dial

Base classes

Name Children Inherits
AbstractSliderMixin
prettyqt.widgets.abstractslider
QDial
PySide6.QtWidgets
QDial(self, /, parent: PySide6.QtWidgets.QWidget | None \= None, *, wrapping: bool | None \= None, notchSize: int | None \= None, notchTarget: float | None \= None, notchesVisible: bool | None \= None) -> None

⋔ Inheritance diagram

graph TD
  3956543319["widgets.Dial"]
  3920585708["widgets.AbstractSliderMixin"]
  829357528["widgets.WidgetMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  625385617["gui.PaintDeviceMixin"]
  1860479047["QtWidgets.QDial"]
  229763307["QtWidgets.QAbstractSlider"]
  3620195106["QtWidgets.QWidget"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  673956333["QtGui.QPaintDevice"]
  3920585708 --> 3956543319
  829357528 --> 3920585708
  3227531497 --> 829357528
  2751680898 --> 3227531497
  625385617 --> 829357528
  2751680898 --> 625385617
  2751680898 --> 829357528
  2751680898 --> 3920585708
  1860479047 --> 3956543319
  229763307 --> 1860479047
  3620195106 --> 229763307
  3984060476 --> 3620195106
  37984305 --> 3984060476
  2751680898 --> 37984305
  673956333 --> 3620195106
  37984305 --> 673956333

🛈 DocStrings

Bases: AbstractSliderMixin, QDial

Rounded range control (like a speedometer or potentiometer).

Source code in prettyqt/widgets/dial.py
class Dial(widgets.AbstractSliderMixin, widgets.QDial):
    """Rounded range control (like a speedometer or potentiometer)."""

    value_changed = core.Signal(int)

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.valueChanged.connect(self.on_value_change)

:fa-brands-github: Show source on GitHub