title: How to Display a "*.png" file on a UI in QT framework?
body: <p>I am new to Qt Framework...</p>
  
  <p>I want to display a .png pic in my Form1.ui  , 
  so I dragged and dropped a Graphic view from the widget box then
  I placed test.png in the same directory (inside the project folder)</p>
  
  <p>and i did this in the code</p>
  
  <pre><code>//Form1.cpp
  #include "form1.h"
  #include "ui_form1.h"
  
  Form1::Form1(QWidget *parent) :
      QWidget(parent),
      ui(new Ui::Form1)
  {
      ui-&gt;setupUi(this);
      ui-&gt;Pic1-&gt;setStyleSheet("background-image: url(test.png)");
  
  }
  
  Form1::~Form1()
  {
      delete ui;
  }
  
  
  
  //Form1.h
  #ifndef FORM1_H
  #define FORM1_H
  
  #include &lt;QWidget&gt;
  
  namespace Ui {
      class Form1;
  }
  
  class Form1 : public QWidget
  {
      Q_OBJECT
  
  public:
      explicit Form1(QWidget *parent = 0);
      ~Form1();
  
  private:
      Ui::Form1 *ui;
  };
  
  #endif // FORM1_H
  </code></pre>
  
  <p>It compiled perfectly but the pic didn't appear , 
  What did I Wrong ?</p>
  
  <p>this is my qrc :</p>