Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickstyleitemscrollbar.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKSTYLEITEMSCROLLBAR_H
5#define QQUICKSTYLEITEMSCROLLBAR_H
6
7#include "qquickstyleitem.h"
8#include <QtQuickTemplates2/private/qquickscrollbar_p.h>
9
11
13{
15
16 Q_PROPERTY(SubControl subControl MEMBER m_subControl)
17
18 QML_NAMED_ELEMENT(ScrollBar)
19
20public:
28
29 explicit QQuickStyleItemScrollBar(QQuickItem *parent = nullptr);
30
31 QFont styleFont(QQuickItem *control) const override;
32
33protected:
34 void connectToControl() const override;
35 void paintEvent(QPainter *painter) const override;
37
38private:
39 void initStyleOption(QStyleOptionSlider &styleOption) const;
40
41private:
42 SubControl m_subControl = Groove;
43};
44
46
47#endif // QQUICKSTYLEITEMSCROLLBAR_H
\reentrant
Definition qfont.h:22
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
QQuickItem * parent
\qmlproperty Item QtQuick::Item::parent This property holds the visual parent of the item.
Definition qquickitem.h:67
void connectToControl() const override
void paintEvent(QPainter *painter) const override
QFont styleFont(QQuickItem *control) const override
StyleItemGeometry calculateGeometry() override
QQuickStyleItemScrollBar(QQuickItem *parent=nullptr)
QQuickItem * control
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
QPainter painter(this)
[7]