Hi. I`ve written this code :

Qt Code:
  1. QProcess *myProcess = new QProcess();
  2.  
  3. QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
  4.  
  5. env.insert("LD_LIBRARY_PATH", "/home/khoros2200/lib");
  6.  
  7. myProcess->setProcessEnvironment(env);
  8.  
  9. myProcess->execute("/home/khoros2200/bin/karith1")
To copy to clipboard, switch view to plain text mode 
;

and i have this error :

/home/khoros2200/bin/karith1: error while loading shared libraries: libkdmanip.so: cannot open shared object file: No such file or directory

when I execute the program in console , it works properly . When I unset the LD_LIBRARY_PATH variable I get the same mistake as in Qt Creator. So what`s the problem ? Why is QProcess doesn`t see envioronment variables ?