thanks for reply this is my code snippet
connect(captureButton, SIGNAL(clicked()),this,SLOT(newPorting()));
connect(captureButton, SIGNAL(clicked()),this,SLOT(newPorting()));
To copy to clipboard, switch view to plain text mode
in newPorting()
<script type="text/c++Script">
connect(proc, SIGNAL(readyReadStandardOutput()), this, SLOT(readFromStdout()));
proc->start(program, arguments);
</script>
<script type="text/c++Script">
QString program = "./test_ftrapi";
proc = new QProcess(this);
connect(proc, SIGNAL(readyReadStandardOutput()), this, SLOT(readFromStdout()));
proc->start(program, arguments);
</script>
To copy to clipboard, switch view to plain text mode
in readFromStdout()
msgtextEdit->setText(proc->readAllStandardOutput());
msgtextEdit->setText(proc->readAllStandardOutput());
To copy to clipboard, switch view to plain text mode
please help
Bookmarks