Hello,
I will use convert QImage to QGraphicsRectItem. I have to implement paint() fromQGraphicsItem. But there is no virtual destructor in QGraphicsItem. how can I work out this?
Thanks!
Hello,
I will use convert QImage to QGraphicsRectItem. I have to implement paint() fromQGraphicsItem. But there is no virtual destructor in QGraphicsItem. how can I work out this?
Thanks!
Why not QGraphicsPixmapItem?
Of course it's virtual as indicated by the docs.But there is no virtual destructor in QGraphicsItem. how can I work out this?
J-P Nurmi
Sorry, I made a mistake.
There is no virtual destructor in QGraphicsRectItem. So I can not inherit it. Could you please give some hints to solve this?
I will not use QGraphicsPixmapItem because QImage is used in my application.
It's declared as virtual by QGraphicsItem so it remains virtual in all subclasses.
J-P Nurmi
Bookmarks