opencv_mv/QPlugins/ImageProcess/ImageFlip/ImageItem.h

23 lines
384 B
C++

#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);
};