console = new QProcess(); console->start(QString::fromUtf8("/usr/share/applications/Терминал"),QStringList() << "nmap 192.168.0.108"); console->waitForReadyRead(); qDebug() << console->readAllStandardOutput();
C++ (Qt)console->start("/bin/sh -c nmap 192.168.0.108");
C++ (Qt)console->start("nmap 192.168.0.108");