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]
10
class
CustomStyle
:
public
QProxyStyle
11
{
12
Q_OBJECT
13
14
public
:
15
explicit
CustomStyle
(
const
QWidget
*
widget
=
nullptr
);
16
~
CustomStyle
() {}
17
18
void
drawPrimitive
(PrimitiveElement element,
const
QStyleOption *option,
19
QPainter *painter,
const
QWidget *widget)
const
override
;
20
};
21
//! [0]
22
23
#
endif
CustomStyle
[0]
Definition
customstyle.h:11
CustomStyle::drawPrimitive
void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override
[2]
Definition
customstyle.cpp:19
CustomStyle::~CustomStyle
~CustomStyle()
Definition
customstyle.h:16
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
qtbase
src
widgets
doc
snippets
customstyle
customstyle.h
Generated on
for Qt by
1.14.0