title: Changing the color of a QFrame in QT
body: <p>I have set the color of my main window in QT to be grey. </p>
  
  <pre><code>ui(new Ui ::MainWindow)
  ui-&gt; setupUi(this)
  this-&gt;setStyleSheet("background-color: grey;");
  </code></pre>
  
  <p>I have tried multiple ways to set the color of the QFrame, however it takes on the default grey color that I have set. One way I tried is below.</p>
  
  <pre><code>ui-&gt;frame-&gt;setStyleSheet("color:rgb(255,255,255)");
  </code></pre>
  
  <p>I have tried to change the color of the QFrame by using the setStyleSheet method but no matter which color I assign it remains grey. I have tried setting the background, border, and color. Is there any way to do this that I am overlooking?</p>