title: Qt - QPainter.DrawText doesnt draw the text
body: <p>I'm creating an analog clock in Qt-Creator 5, now I want to draw the numbers to the screen, but it doesn't work?</p>
  <pre><code>painter.drawText(QPoint(50, 50), &quot;12&quot;);
  </code></pre>
  <p>I absolutely don't see the point why it doesn't work. when I replace this line in my code with a <code>.drawEllipse</code>, it works fine. So the position/color can't be the problem, except <code>drawText</code> would not use the <code>setBrush()</code> color.</p>
  <p>Anyone knows how to correctly draw text on the screen with the <code>QPainter</code>?</p>
  <pre><code>//previous code only draws blue ellipses with white background
  QColor secondColor(240,0,0);
  
  painter.setPen(Qt::NoPen);
  painter.setBrush(secondColor);
  painter.save();
  
  QFont font=painter.font() ;
  font.setPointSize(18);
  painter.setFont(font);
  painter.drawText(QPoint(50, 50), &quot;12&quot;);
  </code></pre>
  <p>because it's at the end of <code>paintEvent</code> it can't be overdrawn</p>