title: Styled top-level QPushButton widget does not render properly
body: <p>I've successfully made a <code>QPushButton</code> the top-level widget/window of an application and am attempting to style the button like so:</p>
  
  <pre><code>#include &lt;QPushButton&gt;
  #include &lt;QApplication&gt;
  
  class MyButton : public QPushButton
  {
  public:
      MyButton() : QPushButton( "Button" )
      {
          setFixedSize( 250 , 65 );
          setStyleSheet( "border-radius: 10px;" ); // style
      }
  };
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      MyButton b;
      b.setWindowFlags( Qt::FramelessWindowHint | Qt::CustomizeWindowHint | Qt::WindowStaysOnTopHint );
      b.setAttribute(Qt::WA_TranslucentBackground); // Fixes opaque BG
      b.show();
  
      return a.exec();
  }
  </code></pre>
  
  <p>Unfortunately, as the following image shows, the button is no longer rendered properly when the style is applied. I'd appreciate help getting the button to render the style properly.</p>
  
  <p><img src="https://i.stack.imgur.com/o5fFc.png" alt="enter image description here"></p>
  
  <p><strong>Edit</strong></p>
  
  <p>Following Kuber Obas answer, I'd appreciate help styling the edges of the widget, i.e. those that are outside the rounded corner, to transparent as shown below</p>
  
  <p><img src="https://i.stack.imgur.com/LUfUP.png" alt="enter image description here"></p>