Qt 5.10 Book Examples
chapter26
CustomStyle
CustomStyle.h
Go to the documentation of this file.
1
// ======================================================================
2
// CustomStyle.h
3
// ======================================================================
4
// This file is a part of the book
5
// "Qt 5.10 Professional programming with C++"
6
// http://qt-book.com
7
// ======================================================================
8
// Copyright (c) 2017 by Max Schlee
9
// ======================================================================
10
11
#pragma once
12
13
#include <QtWidgets>
14
15
class
QPainter;
16
17
// ======================================================================
18
class
CustomStyle
:
public
QCommonStyle {
19
public
:
20
virtual
void
polish
(QWidget* pwgt);
21
virtual
void
unpolish
(QWidget* pwgt);
22
23
virtual
void
drawPrimitive
( PrimitiveElement elem,
24
const
QStyleOption* popt,
25
QPainter* ppainter,
26
const
QWidget* pwgt = 0
27
)
const
;
28
};
CustomStyle::unpolish
virtual void unpolish(QWidget *pwgt)
Definition:
CustomStyle.cpp:23
CustomStyle
Definition:
CustomStyle.h:18
CustomStyle::drawPrimitive
virtual void drawPrimitive(PrimitiveElement elem, const QStyleOption *popt, QPainter *ppainter, const QWidget *pwgt=0) const
Definition:
CustomStyle.cpp:31
CustomStyle::polish
virtual void polish(QWidget *pwgt)
Definition:
CustomStyle.cpp:15
Generated by
1.8.14