title: In Qt, how to change a slider's background color?
body: <p>I would like to to change a slider's background color, but this code does not work:</p>
  
  <pre><code>QPalette p( ui-&gt;verticalScrollBar-&gt;palette());
  p.setColor( QPalette::Window, Qt::red );
  ui-&gt;verticalScrollBar-&gt;setPalette(p);
  </code></pre>