![]() |
Qt 6.x
The Qt SDK
|
#include "qquickdial_p.h"
#include "qquickdeferredexecute_p_p.h"
#include <QtCore/qmath.h>
#include <QtQuick/private/qquickflickable_p.h>
#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
#include <cmath>
#include "moc_qquickdial_p.cpp"
Go to the source code of this file.
Classes | |
class | QQuickDialPrivate |
Functions | |
QT_BEGIN_NAMESPACE constexpr qreal | toUserAngleDeg (qreal logicAngleRad) |
Circular dial that is rotated to set a value. | |
template<typename ... Real> | |
static bool | areRepresentableAsInteger (Real... numbers) |
Variables | |
static const qreal | defaultStartAngle = -140 |
static const qreal | defaultEndAngle = 140 |
|
static |
Definition at line 346 of file qquickdial.cpp.
References number.
Referenced by QQuickDialPrivate::updateAllValuesAreInteger().
|
constexpr |
Circular dial that is rotated to set a value.
\qmltype Dial \inherits Control
! \instantiates QQuickDial \inqmlmodule QtQuick.Controls
The Dial is similar to a traditional dial knob that is found on devices such as stereos or industrial equipment. It allows the user to specify a value within a range.
The value of the dial is set with the \l value property. The range is set with the \l from and \l to properties. To enable or disable wrapping, use the \l wrap property.
The dial can be manipulated with a keyboard. It supports the following actions:
\table \header
Qt.Key_Left
\row Qt.Key_Down
\row Qt.Key_Home
\row Qt.Key_Right
\row Qt.Key_Up
\row Qt.Key_End
\endtableinputMode
This signal is emitted when the dial has been interactively moved by the user by either touch, mouse, or keys.
\qmlsignal QtQuick.Controls::Dial::wrapped(Dial.WrapDirection direction)
This signal is emitted when the dial wraps around, i.e. goes beyond its maximum value to its minimum value, or vice versa. It is only emitted when \l wrap is true
. The direction argument specifies the direction of the full rotation and will be one of the following arguments:
\value Dial.Clockwise The dial wrapped in clockwise direction. \value Dial.CounterClockwise The dial wrapped in counterclockwise direction.
Definition at line 77 of file qquickdial.cpp.
References M_PI.
Referenced by QQuickDialPrivate::circularPositionAt().
|
static |
Definition at line 83 of file qquickdial.cpp.
Referenced by QQuickDial::componentComplete().
|
static |
Definition at line 82 of file qquickdial.cpp.
Referenced by QQuickDial::componentComplete().