Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qquickstyleitemcheckbox.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 QQUICKSTYLEITEMCHECKBOX_H
5#define QQUICKSTYLEITEMCHECKBOX_H
6
7#include "qquickstyleitem.h"
8#include <QtQuickTemplates2/private/qquickcheckbox_p.h>
9
11
13{
15 QML_NAMED_ELEMENT(CheckBox)
16
17public:
18 QFont styleFont(QQuickItem *control) const override;
19
20protected:
21 void connectToControl() const override;
22 void paintEvent(QPainter *painter) const override;
24
25private:
26 void initStyleOption(QStyleOptionButton &styleOption) const;
27};
28
30
31#endif // QQUICKSTYLEITEMCHECKBOX_H
\reentrant
Definition qfont.h:20
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:64
QFont styleFont(QQuickItem *control) const override
void connectToControl() const override
void paintEvent(QPainter *painter) const override
StyleItemGeometry calculateGeometry() override
QQuickItem * control
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define Q_OBJECT
QPainter painter(this)
[7]