title: Qt/C++ - Set background of disabled button?
body: <p>I have all my buttons disabled in a grid, but for some, I'd like to change the background color. I'm trying:</p>
  
  <pre><code>_fieldButtons[0][0]-&gt;setStyleSheet("color: blue; background-color: blue;");
  </code></pre>
  
  <p>Where </p>
  
  <pre><code>QVector&lt;QVector&lt;QPushButton*&gt; &gt; _fieldButtons;
  </code></pre>
  
  <p>However, these buttons are all disabled, and only the text color gets changed:</p>
  
  <p><a href="https://i.stack.imgur.com/zkGR5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zkGR5.png" alt="enter image description here"></a></p>
  
  <p>How can I change the background, but not the text? Thank you!</p>
  
  <p><strong>UPDATE</strong>
  I figured it's not working because the buttons are flat. How can I change flat button colors?</p>