title: Is there a way to make drawText() update a QPicture's bounding rect?
body: <p>Drawing on a <code>QPicture</code> should update its bounding rect. Like this:</p>
  
  <pre><code>&gt;&gt;&gt; picture = QPicture()
  &gt;&gt;&gt; painter = QPainter(picture)
  &gt;&gt;&gt; picture.boundingRect()
  QRect(0,0,0,0)
  &gt;&gt;&gt; painter.drawRect(20,20,50,50)
  &gt;&gt;&gt; picture.boundingRect()
  QRect(20,20,50,50)
  </code></pre>
  
  <p>But if I draw text on it, the bounding rect isn't updated:</p>
  
  <pre><code>&gt;&gt;&gt; picture = QPicture()
  &gt;&gt;&gt; painter = QPainter(picture)
  &gt;&gt;&gt; picture.boundingRect()
  QRect(0,0,0,0)
  &gt;&gt;&gt; painter.drawText(10,10, "Hello, World!")
  &gt;&gt;&gt; picture.boundingRect()
  QRect(0,0,0,0)
  </code></pre>
  
  <p>Obviously, it doesn't update the bounding rect.</p>
  
  <p>Is there a way to make it repsect drawn text or do I have to do it manually? (Not too hard, but I hope that Qt can assist me here.)</p>