Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
:-1: error: cannot open output file debug\hostname.exe: Permission denied
krustasia last edited by
QString name = qgetenv("USER");
name = qgetenv("USERNAME");
qDebug() << name;
I'm trying to learn getting environment variables from examples found on internet but this one seemed to have permission related issue.
How do I know the right permission needed to be able to get the right output?
The project name is hostname