title: How to setText for QPlainTextEdit?
body: <p>Qt5's documentation doesn't mention that <code>QPlainTextEdit</code> has <code>setText(QString)</code> like <code>QTextEdit</code> does. But, I don't think it's impossible. The only way I found is to use <code>QTextDocument</code> which can has <code>setPlainText(const QString&amp; text)</code>. So I have to do this:</p>
  
  <pre><code>plain_text_edit-&gt;setDocument(text_document);
  </code></pre>
  
  <p>The problem is <code>text_document</code> should be a pointer. Not like <code>QTextEdit</code>'s <code>setText</code> which can take a local variable as it's parameter. So, is there anyway to do <code>setText</code> like to <code>QPlainTextEdit</code>?</p>