Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
DrawWidget.h
Go to the documentation of this file.
1#pragma once
2#include <QPaintEvent>
3#include <QWidget>
4#include <QtUiPlugin/QDesignerExportWidget>
5#include <misc/global.h>
6
7namespace sf
8{
9
13class _MISC_CLASS DrawWidget : public QWidget
14{
15 Q_OBJECT
16
17 public:
22 explicit DrawWidget(QWidget* parent = nullptr);
23
28 void paintEvent(QPaintEvent* event) override;
29
33 Q_SIGNAL void paint(QPaintEvent* event);
34};
35
36}// namespace sf
Simple widget which redirects the painting event to a Qt signal method.
Definition DrawWidget.h:14
void paintEvent(QPaintEvent *event) override
Emits the paint signal when called.
Q_SIGNAL void paint(QPaintEvent *event)
Signal for painting.
DrawWidget(QWidget *parent=nullptr)
Constructor passing owner/parent.
#define _MISC_CLASS
Definition misc/global.h:40
Definition Application.h:10