a lot of stuff related to ocr/ofd method
This commit is contained in:
27
image_redactor/imageredactor.h
Normal file
27
image_redactor/imageredactor.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef IMAGEREDACTOR_H
|
||||
#define IMAGEREDACTOR_H
|
||||
|
||||
#include <QGraphicsView>
|
||||
#include <QGraphicsScene>
|
||||
#include <QGraphicsPixmapItem>
|
||||
#include <QWheelEvent>
|
||||
#include <QMouseEvent>
|
||||
|
||||
class ImageRedactor : public QGraphicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ImageRedactor(QWidget *parent = nullptr);
|
||||
protected:
|
||||
void wheelEvent(QWheelEvent *event);
|
||||
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
|
||||
private:
|
||||
QGraphicsScene *scene;
|
||||
QGraphicsPixmapItem *item;
|
||||
};
|
||||
|
||||
#endif // IMAGEREDACTOR_H
|
||||
Reference in New Issue
Block a user