ugfx/drivers/ginput/touch/QWidget/example/mywidget.h

19 lines
390 B
C
Raw Permalink Normal View History

2016-07-26 10:50:32 +00:00
#pragma once
class MyWidget : public QWidget
{
Q_OBJECT
public:
MyWidget(QWidget* parent = nullptr);
virtual ~MyWidget() = default;
protected:
virtual void mousePressEvent(QMouseEvent* event) override;
virtual void mouseReleaseEvent(QMouseEvent* event) override;
virtual void mouseMoveEvent(QMouseEvent* event) override;
private:
Q_DISABLE_COPY(MyWidget)
};