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
7
namespace
sf
8
{
9
13
class
_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
sf::DrawWidget
Simple widget which redirects the painting event to a Qt signal method.
Definition
DrawWidget.h:14
sf::DrawWidget::paintEvent
void paintEvent(QPaintEvent *event) override
Emits the paint signal when called.
sf::DrawWidget::paint
Q_SIGNAL void paint(QPaintEvent *event)
Signal for painting.
sf::DrawWidget::DrawWidget
DrawWidget(QWidget *parent=nullptr)
Constructor passing owner/parent.
global.h
_MISC_CLASS
#define _MISC_CLASS
Definition
misc/global.h:40
sf
Definition
Application.h:10
src
com
misc
qt
DrawWidget.h
Generated by
1.9.8