opencv_mv/QPlugins/DetectIdentify/Brightness/ImageItem.h

27 lines
490 B
C
Raw Permalink 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;
public slots:
void slot_BrightnessValue(QString InfoVal);
signals:
void RGBValue(QString InfoVal);
void BrightnessValue(QString InfoVal);
};