Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickstyleitemgroupbox.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 QQUICKSTYLEITEMGROUPBOX_H
5#define QQUICKSTYLEITEMGROUPBOX_H
6
7#include "qquickstyleitem.h"
8#include <QtQuickTemplates2/private/qquickgroupbox_p.h>
9
11
13{
17 QML_NAMED_ELEMENT(GroupBox)
18
19public:
21 QPointF labelPos() const;
22 QFont styleFont(QQuickItem *control) const override;
23
27
28protected:
29 void paintEvent(QPainter *painter) const override;
31
32private:
33 QQuickStyleMargins m_groupBoxPadding;
34 QPointF m_labelPos;
35
36 void initStyleOption(QStyleOptionGroupBox &styleOption) const;
37};
38
40
41#endif // QQUICKSTYLEITEMGROUPBOX_H
\reentrant
Definition qfont.h:20
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
\inmodule QtCore\reentrant
Definition qpoint.h:214
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
void paintEvent(QPainter *painter) const override
QFont styleFont(QQuickItem *control) const override
StyleItemGeometry calculateGeometry() override
QQuickItem * control
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
QPainter painter(this)
[7]