to a directory and then list all files in there, something like this:
                  
                  
                  QProcess qHome;
                  
                  
                  qHome.start("sh", QStringList() << "-c"
                  
                  
                                                        << "cd /home/linarcx; ls");
                  
                  
                  qHome.waitForFinished(2000);
                  
                  
                  But it's not working. It only list all files in current project directory.(It don't switch to home directory at all!!). why?
                  
                  
                
Can't you do that with QDir?
Обсуждают сегодня