Thank you. QTextEdit and ui->textEdit1->append(str) did the work.