Create and control dial slider widgets.
This class is a JS wrapper around Qt's QDial class
A QDial provides ability to add and manipulate native dial slider widgets.
QDial inherits from QAbstractSlider
Example
const { QDial } = require("@nodegui/nodegui");const dial = new QDial();
new QDial(parent?)
parentNodeWidget (optional). Any widget inheriting from NodeWidget can be passed as a parent. This will make this widget, the child of the parent widget.
Static Methods
QDial can access all the static methods defined in NodeWidget
Instance Properties
QDial can access all the instance properties defined in NodeWidget
Instance Methods
QDial can access all the instance methods defined in NodeWidget. Additionally it also has the following instance methods:
dial.setNotchesVisible(visible)
Sets the visibility of notches drawn around the dial. It calls the native method QDial: setNotchesVisible.
visibleboolean - Set the value as current notch visibility.
dial.setWrapping(on)
Sets the ability to wrap arrow around the dial instead of limiting it to upper part of the dial. It calls the native method QDial: setWrapping.
onboolean - Set the value as current wrapping setting.
dial.setNotchTarget(target)
Sets the number of pixels between dial notches. It calls the native method QDial: setNotchTarget.
targetnumber - Specifies number of pixels between notches.
dial.notchTarget()
Returns the current number of pixels between dial notches. It calls the native method QDial: notchTarget.
dial.notchesVisible()
Returns the visibility status (Boolean) of dial notches. It calls the native method QDial: notchesVisible.
dial.notchesVisible()
Returns the visibility status (Boolean) of dial notches. It calls the native method QDial: notchesVisible.
dial.wrapping()
Returns the current wrapping (Boolean) state of the dial. It calls the native method QDial: wrapping.