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:
...
};
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.