title: QGraphicsObject doesn't display QPixmap
body: <p>I'm developing a very simple application on win7 and running on win8.
  When I run on win7 it shows the pixmap drawn by my <code>QGraphicsObject</code> subclass. However when I copy the exe and dll's to the my tablet it doesn't show the pixmap but everything else is the same.</p>
  
  <p>Another problem is when I quit the application it says unexpectedly closed.</p>
  
  <p>Here are the related parts</p>
  
  <pre><code>myImage::myImage(QGraphicsObject *parent) :
  QGraphicsObject(parent)
  {
      pxm = new QPixmap("://images/flower.jpg");
      setScale(0.5);
  }
  
  QRectF myImage::boundingRect() const
  {
      QRectF rect(0,0,pxm-&gt;width(),pxm-&gt;height());
      return rect;
  }
  
  void myImage::paint( QPainter* painter,
                       const QStyleOptionGraphicsItem* /*option*/,
                       QWidget* /*widget*/ )
  {
      painter-&gt;drawPixmap( 0, 0, pxm-&gt;width(), pxm-&gt;height(), *pxm );
  }
  </code></pre>
  
  <p>And here is the main function</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication app(argc, argv);
  
      QGraphicsScene scene;
  
      myImage img;
      scene.addItem(&amp;img);
  
      QGraphicsView view(&amp;scene);
  
      QWidget window;
      window.setFixedHeight(400);
      window.setFixedWidth(500);
      window.setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
  
      QPushButton button("Quit");
      QObject::connect(&amp;button,SIGNAL(clicked()),&amp;app,SLOT(quit()));
  
      QVBoxLayout layout;
      layout.addWidget(&amp;view);
      layout.addWidget(&amp;button);
  
      window.setLayout(&amp;layout);
      window.show();
  
      return app.exec();
  }
  </code></pre>