title: First time using Qt: How to display an image?
body: <p>Noob: How to display an image
  I am very new to this, just starting actually. I need to figure out how to display an image on screen.</p>
  
  <p>First I tried:</p>
  
  <p>Source code:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      QGraphicsScene scene;
      QGraphicsView view(&amp;scene);
      QPixmap qp = QPixmap("../images/tank2.bmp");
      if(qp.isNull())
      {
          printf("Yes its null\n");
      }
      else
      {
          QGraphicsPixmapItem item(QPixmap("../images/tank2.bmp"));
          scene.addItem(&amp;item);
      }
      view.show();
      return a.exec();
  
  }
  </code></pre>
  
  <p>from:</p>
  
  <p><a href="https://stackoverflow.com/questions/1357960/qt-jpg-image-display">Qt jpg image display</a></p>
  
  <p>it compiles and runs but doesn't show an image. returns 0, etc.</p>
  
  <p>Then I just sorta messed around from there. I'm also curious about something: In Qt editor they show a file structure that doesn't exist on the disk. They have files "Headers", "Sources", and Resources whereas on the systems its just a folder "projectname" with all the files in one folder. Is this just for visual clarity?</p>
  
  <p>The version of QtCreator I'm using is 2.4.1 running Qt 4.7.4 64 bit.</p>
  
  <p>My eventual goal is to make a widget where a picture is a clickable icon where you select that pic and can place it on a larger screen like a tile.</p>
  
  <p>Another Question: Why does Qt have things like "QString" and "QChar"? Is there something wrong with the normal c++ libraries?</p>