title: How do I auto-adjust the size of a QDialog depending on the text length of one of its children?
body: <p>I have a <code>QDialog</code> I'm working with.  It is made somewhat like a <code>QMessageBox</code>.  I noticed that the size of the <code>QMessageBox</code> (and the size of its label) depends on the size of the message displayed.</p>
  
  <p>How would I make the size of my <code>QDialog</code> adjust automatically like a <code>QMessageBox</code>?  Presently my <code>QDialog</code> contains a button box and a label, and the <code>QDialog</code> is layout Vertical.</p>
  
  <p>(I know I could just use the message box directly but eventually I will have more complex dialogs.)</p>