How to write custom singnal and slots for custom QGraphicsPolygonItem?
General and Desktop
3
Posts
3
Posters
621
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:
...
}
@