Try QTextEdit::text().
http://doc.trolltech.com/3.3/qtextedit.html
Try QTextEdit::text().
http://doc.trolltech.com/3.3/qtextedit.html
thanks for your response
I soleved my problem
bassically I needed this:
myfile << cajaTexto->text();
where "cajaText" is my textEdit..
very simple...
thanks
This works fine for Qt3, but doesn't for Qt4.2.3
I looked through the Trolltech Qt4 examples for QTextEdit, but found no examples where the edited information was saved to a file.
In Qt 4 you have to use QTextEdit::toPlainText() or QTextEdit::toHtml().
See the demos/textedit.
Carlton (11th October 2007)
Bookmarks