12env <<
"TMPDIR=C:\\MyApp\\temp";
13process.setEnvironment(env);
14process.start(
"myapp");
22env.
insert(
"TMPDIR",
"C:\\MyApp\\temp");
23process.setProcessEnvironment(env);
24process.start(
"myapp");
29int main(
int argc,
char *argv[])
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
void insert(const QString &name, const QString &value)
Inserts the environment variable of name name and contents value into this QProcessEnvironment object...
static QProcessEnvironment systemEnvironment()
QApplication app(argc, argv)
[0]