Qt 5.10 Book Examples
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 };
virtual void unpolish(QWidget *pwgt)
Definition: CustomStyle.cpp:23
virtual void drawPrimitive(PrimitiveElement elem, const QStyleOption *popt, QPainter *ppainter, const QWidget *pwgt=0) const
Definition: CustomStyle.cpp:31
virtual void polish(QWidget *pwgt)
Definition: CustomStyle.cpp:15