Loading...
Searching...
No Matches
GraphicsProxyObject.hpp
1#pragma once
2#include <QGraphicsItem>
3#include <QObject>
4#include <QPainter>
6 : public QObject
7 , public QGraphicsItem
8{
9public:
10 BaseGraphicsObject(QGraphicsItem* parent = nullptr)
11 : QGraphicsItem{parent}
12 {
13 this->setFlag(QGraphicsItem::ItemHasNoContents, true);
14 }
15
16 ~BaseGraphicsObject() override { }
17
18 QRectF boundingRect() const override { return {}; }
19
20 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
21 override
22 {
23 }
24
25 void setSelectionArea(const QRectF&) { }
26};
Definition GraphicsProxyObject.hpp:8