opencv_mv/QPlugins/GeometryTools/FitCircle/QGraphicsScenes.h

24 lines
433 B
C
Raw Permalink Normal View History

2023-05-22 09:27:46 +00:00
#pragma once
#include <QGraphicsScene>
class QGraphicsScenes : public QGraphicsScene
{
Q_OBJECT
public:
QGraphicsScenes(QObject *parent = nullptr);
void startCreate();
protected:
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
signals:
void updatePoint(QPointF p, QList<QPointF> list, bool isCenter);
void createFinished();
protected:
QList<QPointF> Plist;
bool PolygonFlg;
};