title: How to use local coordinates to a QGraphicsItem
body: <p>I created a custom qGraphicsRectItem which I added to my qGraphicsScene. I would like to add text to this custom rectangle using its local coordinates (i.e. adding to 0,0 places the item at the origin of my rectangle no matter where it its in my scene)
  When I try to do so, it uses my scene's coordinate system and the text appears out of the rectangle. Any ideas?</p>
  
  <pre><code>  PackageRect::PackageRect(QString PackageName, qreal x, qreal y, qreal w, qreal h, QGraphicsItem *parent)
      :QGraphicsRectItem(x, y, w,  h, parent)
  {
  
      QGraphicsTextItem *text = new QGraphicsTextItem(PackageName, this);
      text-&gt;setPos(0,0);
  }
  </code></pre>