24 auto scrollBar = control<QQuickScrollBar>();
32 initStyleOption(styleOption);
46 geometry.
layoutRect =
style()->subElementRect(QStyle::SE_ScrollBarLayoutItem, &styleOption);
55 initStyleOption(styleOption);
67 scrollBarImage.setDevicePixelRatio(
scale);
72 sourceImageRect =
QRect(sourceImageRect.topLeft() *
scale, sourceImageRect.size() *
scale);
82 auto scrollBar = control<QQuickScrollBar>();
84 switch (m_subControl) {
134#include "moc_qquickstyleitemscrollbar.cpp"
Qt::Orientation orientation
the orientation of the slider
@ Format_ARGB32_Premultiplied
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Q_WEAK_OVERLOAD void setObjectName(const QString &name)
Sets the object's name to name.
The QPainter class performs low-level painting on widgets and other paint devices.
void drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor)
Draws the rectangular portion source of the given image into the target rectangle in the paint device...
\inmodule QtCore\reentrant
QStyle::SubControls subControls
QStyle::SubControls activeSubControls
Qt::Orientation orientation
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QQuickWindow * window() const
Returns the window in which this item is rendered.
qreal scale
\qmlproperty real QtQuick::Item::scale This property holds the scale factor for this item.
virtual void connectToControl() const
OverrideState m_overrideState
static QStyle::State controlSize(QQuickItem *item)
void initStyleOptionBase(QStyleOption &styleOption) const
\inmodule QtCore\reentrant
void transpose() noexcept
Swaps the width and height values.
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.
SubControl
This enum describes the available sub controls.
Combined button and popup list for selecting options.
GLenum GLenum GLenum GLenum GLenum scale
QMargins ninePatchMargins