title: Transpaprent QLabel
body: <pre><code>#include &lt;QtGui&gt;
  
  class   Label : public QLabel
  {
  public:
      Label(QWidget *parent =0) :
          QLabel(parent)
      {
          resize(100, 100);
          setText("hello");
          show();
      }
  };
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
  
      Label l;
  
      return a.exec();
  }
  </code></pre>
  
  <p>This outputs a label 'hello' with a background. I'm using Qt4. I want to make the background of this label completely transparent. But <em>setWindowOpacity</em> changes the whole widget transparency. I want the content as it is, but only the background to be transparent.</p>