title: How do I set a styleSheet for a custom titleBarWidget (for DockWidget) with global css
body: <p>I have a global file.css for ma Qt application </p>
  
  <p>He works fine !</p>
  
  <p>but I have a Custom widget for my titleBars of DockWidget</p>
  
  <pre><code>myDockWidget.setTitleBarWidget(myWidgetTitleBar(myDockWidget))
  </code></pre>
  
  <p>I don't find how to change styleSheet of this widget in my file.css</p>
  
  <p>if I write in my class :</p>
  
  <pre><code>myWidgetTitleBar.setStyleSheet("Border:2px solid green; background-color:red;")
  </code></pre>
  
  <p>it doesn't works.</p>
  
  <p>I tried :</p>
  
  <p>file.css :</p>
  
  <pre><code>myWidgetTitleBar {  Border:2px solid green; background-color:red;  }
  </code></pre>
  
  <p>or, after have set in my class setObjectName("toto")</p>
  
  <pre><code>Widget#toto {  Border:2px solid green; background-color:red;  }
  </code></pre>
  
  <p>that's strange because all other widget with toto name works (green border and red bg), but this specific widget in my titlebar doesnt't.</p>
  
  <p>(is the same when floating or not)</p>
  
  <p>I tried this but same, doesn't work.</p>
  
  <pre><code>myDockWidget::title { Border:2px solid green; background-color:red; }
  </code></pre>
  
  <p>any Idea ? a Qt bug ? </p>
  
  <p>I work with pyqt 4 on linux opensuse</p>