title: Setting background image for QPushButton
body: <p>I am struggling to set an background image for an QPushButton. No Success till now. Following is my code.</p>
  
  <pre><code>appsWidget::appsWidget(QWidget *parent)
      :QWidget(parent)
  {
      QPushButton *button1 = new QPushButton("SETTINGS",this);
      QPushButton *button2 = new QPushButton("TEST",this);
      QPushButton *button3 = new QPushButton("IE",this);
  
      button1-&gt;setStyleSheet("background-image:url(config.png)"); -&gt; No success
  
  
      qDebug("appWidget initialized.");
  
      QHBoxLayout *layout = new QHBoxLayout;
      layout-&gt;addWidget(button1);
      layout-&gt;addWidget(button2);
      layout-&gt;addWidget(button3);
      this-&gt;setLayout(layout);
      connect(button1,SIGNAL(clicked()),this,SLOT(setClickIndex1()));
      connect(button2,SIGNAL(clicked()),this,SLOT(setClickIndex2()));
      connect(button3,SIGNAL(clicked()),this,SLOT(setClickIndex3()));
  }
  </code></pre>
  
  <p>The image I am using in the stylesheet is located in the same project folder.
  Do anybody has any solution?</p>