KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
qobjectgraphicsitem.h
1#ifndef QOBJECTGRAPHICSITEM_H
2#define QOBJECTGRAPHICSITEM_H
3
4#include <Kanoop/gui/libkanoopgui.h>
5#include <QObject>
6
7/**
8 * @brief Minimal QObject subclass serving as a QObject base for graphics item mixins.
9 *
10 * QObjectGraphicsItem provides a QObject foundation that can be used alongside
11 * QGraphicsItem subclasses to add signal/slot support without using QGraphicsObject
12 * (which carries additional overhead).
13 */
14class LIBKANOOPGUI_EXPORT QObjectGraphicsItem : public QObject
15{
16 Q_OBJECT
17public:
18 /**
19 * @brief Construct with an optional parent.
20 * @param parent Optional QObject parent
21 */
22 QObjectGraphicsItem(QObject* parent = nullptr);
23};
24
25#endif // QOBJECTGRAPHICSITEM_H
Minimal QObject subclass serving as a QObject base for graphics item mixins.
QObjectGraphicsItem(QObject *parent=nullptr)
Construct with an optional parent.