Skip to content

Instantly share code, notes, and snippets.

@Palantir555
Created March 19, 2013 18:49
Show Gist options
  • Save Palantir555/5198993 to your computer and use it in GitHub Desktop.
Save Palantir555/5198993 to your computer and use it in GitHub Desktop.
QTextCursor prev_cursor = myTextEdit->textCursor();
myTextEdit->moveCursor (QTextCursor::End);
myTextEdit->insertPlainText (myString);
myTextEdit->setTextCursor (&prev_cursor);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment