Is posible to use signals in QGraphicsItems? To send to interact with the scene?
Thanks
Printable View
Is posible to use signals in QGraphicsItems? To send to interact with the scene?
Thanks
Yes, but you have to derive your custom QGraphicsItem also from QObject like this:Code:
class MyGraphicsItem : public QObject, public QGraphicsItem // the order of base classes is important { Q_OBJECT public: ... };