rogerholmes
26th August 2009, 15:27
can someone point me in the right direction to find COMPLETE examples of subclassing. I have not made this request here because i did not want to look like an idiot... but i can not find the docs to show me how to do this.
this works for me
QGraphicsItem *item;
item=this->scene()->addPixmap(pixmap);
i am trying to sub class QGraphicsItem.
my subclass does not work :
myGraphicItem *item;
item=this->scene()->addPixmap(pixmap);
error ! cannot convert QGraphicsPixmapItem* to myGraphicsItem* in assignment.
this works for me
QGraphicsItem *item;
item=this->scene()->addPixmap(pixmap);
i am trying to sub class QGraphicsItem.
my subclass does not work :
myGraphicItem *item;
item=this->scene()->addPixmap(pixmap);
error ! cannot convert QGraphicsPixmapItem* to myGraphicsItem* in assignment.