Hi,
why this code doesn't work ???
Qt Code:
QStringList arguments; arguments << "-c" << "who|cut -d' ' -f1|sort -u"; QProcess *exec; exec->start("/bin/sh", arguments); ui->label->setText(exec->readLine(10));To copy to clipboard, switch view to plain text mode
Bookmarks