Hello everyone. Made a small gui for free console av scanner for personal use. Used QProcess::readAllStandardOutput to read command lines. But it's too much information in output in QString output; (like information about scanner, it's commands etc). I just want to see what it's currently scanning and what has found. Below is is some code from my program. QProcess ps, QString output, QString param (gave some parameters with gui). How can i get rid of not usefull information? Set some sort of filter or delete/replace from QString?

Qt Code:
  1. MainWindow::MainWindow(QWidget *parent)
  2. : QMainWindow(parent), ui(new Ui::MainWindowClass) {
  3. ui->setupUi(this);
  4. ......
  5. connect(&ps, SIGNAL(readyRead()), this, SLOT(on_cmdExec_data_available()));
  6. }
  7.  
  8. void MainWindow::on_scanButton_clicked() {
  9.  
  10. output = "";
  11. ps.start(param);
  12. QTextCursor c = ui->textEdit_output->textCursor();
  13. c.movePosition(QTextCursor::End);
  14. ui->textEdit_output->setTextCursor(c);
  15. ui->textEdit_output->ensureCursorVisible();
  16. }
  17.  
  18. void MainWindow::on_cmdExec_data_available() {
  19. output += ps.readAllStandardOutput();
  20. ui->textEdit_output->append(output);
  21. }
  22. }
  23.  
  24. void MainWindow::on_stopButton_clicked() {
  25. ps.kill();
  26. }
To copy to clipboard, switch view to plain text mode