PDA

View Full Version : Signals in QGraphicsItem



xgoan
16th February 2007, 12:13
Is posible to use signals in QGraphicsItems? To send to interact with the scene?

Thanks

jacek
16th February 2007, 12:20
Yes, but you have to derive your custom QGraphicsItem also from QObject like this:
class MyGraphicsItem : public QObject, public QGraphicsItem // the order of base classes is important
{
Q_OBJECT
public:
...
};