title: Qt Stylesheet mystery
body: <p>My Desktop Qt app has a large stylesheet applied. It's applied for the QApplication derived class I am using:</p>
  
  <pre><code>this-&gt;ApplyStyleSheet(":/qss/default.qss");
  </code></pre>
  
  <p>It works well for all QWidget objects I define and use. (using *.ui files).</p>
  
  <p>My problem begins when i promote one of my QWidgets in the *.ui file I'm using to one of my own QWidget derived classes. </p>
  
  <p>When my widget was QWidget, <strong>the following worked</strong> and changed the background image:</p>
  
  <pre><code>QWidget#myWidget {
      background: transparent;
      background-image: url(:/images/bg_img.png);
      background-repeat: repeat-x;
  }
  </code></pre>
  
  <p>When I promoted the element to my custom QWidget derived class and changed to:</p>
  
  <pre><code>QMyDerivedClass#myWidget {
      background: transparent;
      background-image: url(:/images/bg_img.png);
      background-repeat: repeat-x;
  }
  </code></pre>
  
  <p>I no longer see my background image. Obviously I am missing something. What is it... I hope one of you knows.</p>