title: Qt round rectangle, why corners are different?
body: <p>I try to draw a round rectangle with <code>drawRoundedRect</code> method directly in a <code>QPixmap</code> (no render engine involve here exept pure Qt one ...), I double check the size of the rectangle versus the size of my pixmap :</p>
  
  <pre><code>Pixmap : QSize(50, 73) 
  Rectangle: QRect(0,0 48x11) 
  </code></pre>
  
  <p>See plenty of space ... </p>
  
  <p>EDIT: some code</p>
  
  <pre><code>pixmap = QPixmap(50,73); //example size that match my case
  QRectF rect(0,0,48,11);
  
  QPainter painter(&amp;pixmap);
  painter.setRenderHint(QPainter::TextAntialiasing);
  painter.setWorldMatrixEnabled(false);
  painter.setPen(QPen()); //no pen
  painter.setBrush(QBrush(color));
  painter.drawRoundedRect(rect, 2.0, 2.0);
  </code></pre>
  
  <ul>
  <li>I disabled world transformation ...</li>
  <li>I set set transformation to unity ...</li>
  <li>I tried several radius (1.0,2.0,3.0,4.0) ...</li>
  <li>I change pen width, brush color ...</li>
  </ul>
  
  <p>But it always ends with a rectamgle with 4 diferent corners ! Like that : </p>
  
  <p><img src="https://i.stack.imgur.com/uYdw4.png" alt="Radius = 3.0 in x and y"></p>
  
  <p>I directly ouptut the pixmap to a file to be sure I wasn't scraping it during the display ... same shape.</p>
  
  <p>Anyone know about Qt round rectangle with small radius ? I saw somthing about it a long time ago but I don't remenber how to deal with it !</p>