19 QVBoxLayout *lo =
new QVBoxLayout;
25 p_textEdit =
new QTextEdit;
26 p_textEdit->setFont(QFont(
"Courier"));
27 p_textEdit->setFontPointSize(10);
30 lo->addWidget(p_textEdit);
39 p_textEdit->append(
string);
45 p_textEdit->setFont(QFont(
"Courier"));
46 p_textEdit->setFontPointSize(10);
51 QString s = QFileDialog::getSaveFileName(
this,
"Save log to file");
54 std::string filename(s.toStdString());
55 fout.open(filename.c_str());
56 fout << p_textEdit->toPlainText().toStdString();