6#include <QtCore/qmath.h>
7#include <QtGui/qpainter.h>
8#include <QtQuick/private/qquickpalette_p.h>
9#include <QtQuick/private/qquickitem_p.h>
16 connect(
this, &QQuickItem::paletteChanged,
this, [
this](){
update(); });
32 color.setAlphaF(0.8f);
40 center.y() +
rect.width(),
42 center.x(), center.y());
57#include "moc_qquickfusionknob_p.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
QColor toHsv() const noexcept
Creates and returns an HSV QColor based on this color.
void setColorAt(qreal pos, const QColor &color)
Creates a stop point at the given position with the given color.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
The QPainter class performs low-level painting on widgets and other paint devices.
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawEllipse(const QRectF &r)
Draws the ellipse defined by the given rectangle.
void setBrush(const QBrush &brush)
Sets the painter's brush to the given brush.
void setRenderHint(RenderHint hint, bool on=true)
Sets the given render hint on the painter if on is true; otherwise clears the render hint.
\inmodule QtCore\reentrant
void paint(QPainter *painter) override
This function, which is usually called by the QML Scene Graph, paints the contents of an item in loca...
QQuickFusionKnob(QQuickItem *parent=nullptr)
static QQuickItemPrivate * get(QQuickItem *item)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
qreal width
This property holds the width of this item.
qreal height
This property holds the height of this item.
void update()
Schedules a call to updatePaintNode() for this item.
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
virtual QQuickPalette * palette() const
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qMax(const T &a, const T &b)
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat GLfloat GLfloat h
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent