Hey all,
I have a strange problem with QProcess, I use QProcess and system command "whoami" to get current logged in user.
Code:
/** where "user" is the QLabel"**/ userproc->start(whoamiCom); user->setText(userproc->readAllStandardOutput()); /**I also tried using this method: QByteArray result = userproc->readAll(); user->setText(result); **/
in anyway the program compiles and runs but nothing is parsed on "user" Label.
Please help, thx :cool: