title: How do you remove the border from a QPushButton?
body: <p>I have some QPushButtons in the rows of a QTreeView, and they're showing up with these black borders around them that I can't seem to modify.  Currently I can grey out the buttons with this code:</p>
  
  <pre><code>for (int i = 0; i &lt; QPalette::NColorRoles; i++){
      QPalette::ColorRole thisRole = static_cast&lt;QPalette::ColorRole&gt;(i);
      QColor newColor = commitPalette.color(QPalette::Disabled,thisRole);
      int grayColor = qGray(newColor.rgb());
      newColor.setRgb(grayColor,grayColor,grayColor,50);
      commitPalette.setColor(QPalette::Disabled, thisRole, newColor);
  }
  </code></pre>
  
  <p>But it doesn't do anything to the border.  I'd prefer to avoid using stylesheets, as I like the automatic color generation provided by QPalette's constructor</p>
  
  <p><img src="https://i.stack.imgur.com/eaZmy.jpg" alt="Example of borders"></p>