score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
GraphicsProxyObject.hpp
1
#pragma once
2
#include <QGraphicsItem>
3
#include <QObject>
4
#include <QPainter>
5
class
BaseGraphicsObject
final
6
:
public
QObject
7
,
public
QGraphicsItem
8
{
9
public
:
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
};
BaseGraphicsObject
Definition
GraphicsProxyObject.hpp:8