title: How to set a different background-color to a disabled button with QSS?
body: <p>I have already tried to use <code>disabled</code> and <code>!enabled</code> but it doesn't work.
  Here is my QSS code :</p>
  
  <pre><code>QPushButton {
      background-color:#44c767;
      border-radius:5px;
      border:1px solid #18ab29;
      color:#ffffff;
      font-family:arial;
      font-size:15px;
      font-weight:bold;
      text-decoration:none;
      padding-right:10px;
      outline: 0;
  }
  
  QPushButton:hover:!pressed {
      background-color:#54d777;
  }
  
  QPushButton: pressed {
      background-color:#30b252;
  }
  
  QPushButton: disabled {
      background-color:#ff0000;
  }
  
  QPushButton: !enabled {
      background-color:#ff0000;
  }
  </code></pre>
  
  <p>The documentation refers to a <a href="http://qt-project.org/doc/qt-5/stylesheet-reference.html#disabled-ps" rel="noreferrer"><code>disabled</code></a> pseudo state but without providing more information about it. </p>
  
  <p><strong>Edit</strong></p>
  
  <p>I am using QT5.3</p>