How can I take all text (also with signs: '\n' !!!!!! <- it is very important because I must know where are ENTERs) from QTextEdit and situate it in QString str ?
Qt Code:
To copy to clipboard, switch view to plain text mode
Doesn't work.
How can I take all text (also with signs: '\n' !!!!!! <- it is very important because I must know where are ENTERs) from QTextEdit and situate it in QString str ?
Qt Code:
To copy to clipboard, switch view to plain text mode
Doesn't work.
Last edited by newplayer; 30th July 2008 at 08:56.
I havent used QTextEdit but what i found that i could not find any function named text
maybe you can use toHtml() or toText() depending on what do you require in your string..QString str = textedit1.text()
I can't compile it: `toText' has not been declared
sorry my mistake it is toPlainText()..
look into the docs of QTextEdit http://doc.trolltech.com/4.4/qtextedit.html#details
newplayer (30th July 2008)
It works !! xD
Thx
Bookmarks