Qt 5.10 Book Examples
chapter14
MultiTouch
MultiTouchWidget.h
Go to the documentation of this file.
1
// ======================================================================
2
// MultiTouchWidget.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 <QWidget>
14
15
// ======================================================================
16
class
MultiTouchWidget
:
public
QWidget {
17
private
:
18
QList<QColor> m_lstCols;
19
QList<QTouchEvent::TouchPoint> m_lstTps;
20
21
protected
:
22
virtual
void
paintEvent
(QPaintEvent*);
23
virtual
bool
event (QEvent* );
24
25
public
:
26
MultiTouchWidget
(QWidget* pwgt = 0);
27
};
MultiTouchWidget::paintEvent
virtual void paintEvent(QPaintEvent *)
Definition:
MultiTouchWidget.cpp:25
MultiTouchWidget
Definition:
MultiTouchWidget.h:16
MultiTouchWidget::MultiTouchWidget
MultiTouchWidget(QWidget *pwgt=0)
Definition:
MultiTouchWidget.cpp:15
Generated by
1.8.14