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
customstyle.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef CUSTOMSTYLE_H
5#define CUSTOMSTYLE_H
6
7#include <QProxyStyle>
8
11{
13
14public:
17
19 QPainter *painter, const QWidget *widget) const override;
20};
22
23#endif
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override
[2]
CustomStyle(const QWidget *widget)
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements.
Definition qproxystyle.h:17
The QStyleOption class stores the parameters used by QStyle functions.
PrimitiveElement
This enum describes the various primitive elements.
Definition qstyle.h:102
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QOpenGLWidget * widget
[1]
GLuint GLenum option
#define Q_OBJECT
QPainter painter(this)
[7]