Hi, Im new in Qt and im trying to get the text of a QPlainTextEdit. How can I do this? If it not possible I can use another type like QEditText, but I have the same problem.
Thanks!
Hi, Im new in Qt and im trying to get the text of a QPlainTextEdit. How can I do this? If it not possible I can use another type like QEditText, but I have the same problem.
Thanks!
you can use this method : eg:
Qt Code:
ui->plainTextEdit->toPlainText();To copy to clipboard, switch view to plain text mode
if you only want to use simple text edit control,you can use <line edit> or <text edit>.
Foul Ole Ron (8th June 2016), pavanbarot (4th November 2010)
Bookmarks