Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
9//! [0]
11{
13
14public:
15 explicit CustomStyle(const QWidget *widget = nullptr);
17
18 void drawPrimitive(PrimitiveElement element, const QStyleOption *option,
19 QPainter *painter, const QWidget *widget) const override;
20};
21//! [0]
22
23#endif
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override
[2]
int main(int argc, char *argv[])
[ctor_close]