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.

Qt Code:
  1. this works for me
  2.  
  3. item=this->scene()->addPixmap(pixmap);
  4.  
  5. i am trying to sub class QGraphicsItem.
  6. my subclass does not work :
  7. myGraphicItem *item;
  8. item=this->scene()->addPixmap(pixmap);
  9.  
  10. error ! cannot convert QGraphicsPixmapItem* to myGraphicsItem* in assignment.
To copy to clipboard, switch view to plain text mode