thanks for your response
I soleved my problem
bassically I needed this:

myfile << cajaTexto->text();

where "cajaText" is my textEdit..

very simple...

thanks