I am trying to run this command and store the output in QString and display it using cout, however it does not work...
QString str_command1;
str_command1 = "netstat -i";
proc1 = new QProcess();
proc1->start(str_command1);
QString tx;
tx = proc1->readAllStandardOutput();
std::cout << tx.toStdString() << std::endl;