[SOLVED] Subclass QGraphicsPixmapItem to work with signals and slots



  • Greetings.

    I want to create a subclass of QGraphicsPixmapItem that can work with signals and slots. I wonder if a class GraphicsPixmapItem which is subclass of QGraphicsObject (which I would highly desirable) exists in Qt?... is there such a class or one like it? or Should I create my custom subclass inheriting from QGraphicsPixmap and QObject?

    Thanks in advance for any response.



  • No, I don't think such an item aready exists. You can create your own however by inheriting from both QObject and QGraphicsPixmapItem in that order.



  • Thanks... then I will.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.