Qt 6.11 is out! See what's new in the release
blog
How to write custom singnal and slots for custom QGraphicsPolygonItem?
General and Desktop
3
Posts
3
Posters
760
Views
1
Watching
-
As jalomic suggested inherit you custom QGraphicsPolygonItem from both classes QObject and QGraphicsPolygonItem
Please note that QObject must be first in the inheritance chain. Otherwise moc will not recognize it.
@
class MyGPI : public QObject, public QGraphicsPolygonItem
{
Q_OBJECT
public:
...
}
@