title: Add more than one line to a QTextEdit PyQt
body: <p>I am experiencing a rather strange issue with my PyQT QTextEdit.</p>
  
  <p>When I enter a string from my QLineEdit it adds it but say I enter another the first string disappears I assume that's because I am not appending the text.</p>
  
  <p>Any idea how I can do this?</p>
  
  <p>Here is the relevant code:</p>
  
  <pre><code>self.mytext.setText(str(self.user) + ": " + str(self.line.text()) + "\n")
  </code></pre>
  
  <p>and the important one</p>
  
  <pre><code>self.mySignal.emit(self.decrypt_my_message(str(msg)).strip() + "\n")
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>I figured it out I needed to use a <code>QTextCursor</code></p>
  
  <pre><code>self.cursor = QTextCursor(self.mytext.document())
  self.cursor.insertText(str(self.user) + ": " + str(self.line.text()) + "\n")
  </code></pre>