Qt 5.10 Book Examples
MouseFilter.h
Go to the documentation of this file.
1 // ======================================================================
2 // MouseFilter.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 <QObject>
14 
15 // ======================================================================
16 class MouseFilter : public QObject {
17 protected:
18  virtual bool eventFilter(QObject*, QEvent*);
19 
20 public:
21  MouseFilter(QObject* pobj = 0);
22 
23 };
24 
virtual bool eventFilter(QObject *, QEvent *)
Definition: MouseFilter.cpp:21
MouseFilter(QObject *pobj=0)
Definition: MouseFilter.cpp:15