I am clearly doing something stupid that a newbie does, but I can't solve this. Here is my test code:
This prints:Qt Code:
ui->TextEdit->setPlainText("testing\n"); if(cursor.atEnd()) { ui->TextEdit->insertPlainText("true\n"); };To copy to clipboard, switch view to plain text mode
true
testing
I would expect the lines in different order. What am I missing?
Bookmarks