Is posible to use signals in QGraphicsItems? To send to interact with the scene?
Thanks
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:Qt Code:
class MyGraphicsItem : public QObject, public QGraphicsItem // the order of base classes is important { Q_OBJECT public: ... };To copy to clipboard, switch view to plain text mode
xgoan (16th February 2007)
Bookmarks