opencv_mv/QPlugins/GeometryTools/FitLine/ImageItem.h

23 lines
384 B
C
Raw Normal View History

2023-05-22 09:27:46 +00:00
#pragma once
#include <QGraphicsPixmapItem>
//通过鼠标点选获取当前灰度值
class ImageItem :public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
explicit ImageItem(QWidget *parent = nullptr);
protected:
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
public:
int w;
int h;
signals:
void RGBValue(QString InfoVal);
};