Files
newspark110/device/ui/specificareaswidget.h
Chenwenxuan edac2715f0 init
2024-03-06 14:54:30 +08:00

53 lines
1.1 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef SPECIFICAREASWIDGET_H
#define SPECIFICAREASWIDGET_H
#include <QDialog>
#include"qtcpserver.h"
#include"qtcpsocket.h"
#include <QMouseEvent>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
namespace Ui {
class SpecificAreasWidget;
}
class SpecificAreasWidget : public QDialog
{
Q_OBJECT
public:
explicit SpecificAreasWidget(QWidget *parent = nullptr);
~SpecificAreasWidget();
double Mul; //记录图片与label大小的比例用于缩放图片
QVector<QVector<int>> All;
QImage* scaledimg=new QImage;//显示在窗口上的img
QImage* scaledimgInit=new QImage;//用于点击事件重绘显示的图片
QString filename;
protected:
void mouseMoveEvent(QMouseEvent *e);
void mousePressEvent(QMouseEvent *e);
private slots:
void on_pbOk_clicked();
void on_pbCancel_clicked();
void on_rbSrcImg_clicked();
void on_rbDstImg_clicked();
void on_pbGetRetImg_clicked();
void ShowMergeSlots();
private:
Ui::SpecificAreasWidget *ui;
};
#endif // SPECIFICAREASWIDGET_H