title: Qt, windows cannot find file that Qt open file dialog can
body: <p>So I have a Qt program that saves files among other things. I saved a few files in my C:/ directory. When I look for the file in windows explorer, cygwin, or my command prompt, I cannot find the file. I checked my folder options and those look fine. Despite not being able to find the file, when I need to load a file in my Qt program, the program is able to find the file. Only my program is able to find the file, windows cannot. I am logged in as an administrator, but could this possibly have something to do with permissions?</p>
  
  <p>Also, it may be worth noting that when I save files in c:/users/me/Documents/folder/folder I don't seem to have an issue.</p>
  
  <p>Code that saves file:</p>
  
  <pre><code>QString saveFileName = QFileDialog::getSaveFileName(this,"Select the file you wish to save to.","","");
  
  QFile saveFile(saveFileName);
  
  if(saveFile.open(QIODevice::WriteOnly))
  {
      QTextStream stream(&amp;saveFile);
      QString stringToSaveToFile;
      stream &lt;&lt; stringToSaveToFile;
      saveFile.close();
  }
  else
  {
      QMessageBox::warning(this, "Error", "Cannot open file.");
  }
  </code></pre>
  
  <p>Code that opens file:</p>
  
  <pre><code>QString selectedFile = QFileDialog::getOpenFileName(this, "Select a .pro file.", "", tr("Profile file (*.pro);;All (*.*)"));
  
  QString fileContents;
  QFile file(selectedFile);
  
  if (file.open(QIODevice::ReadOnly) | (QIODevice::Text))
  {
      QTextStream in(&amp;file);
      fileContents = in.readAll();
  }
  else
  {
      QMessageBox::warning(this, "Error", "Unable to open file.");
  }
  </code></pre>
  
  <p>Edit: Just tried this on a different computer. My computer has windows 8, the other computer had windows XP. I could not replicate the problem on the XP machine.</p>
  
  <p>Edit:</p>
  
  <p>I believe I have found what the issue is (<a href="http://answers.microsoft.com/en-us/windows/forum/windows_vista-files/windows-explorer-compatibility-files/5b377209-cfe4-4be6-959d-e1de4b8be16d" rel="nofollow">http://answers.microsoft.com/en-us/windows/forum/windows_vista-files/windows-explorer-compatibility-files/5b377209-cfe4-4be6-959d-e1de4b8be16d</a>), but I am still trying to find out how to resolve it.</p>
  
  <p>The files I am trying to save to the c:/ directory are actually being saved in C:/users/username/AppData/Local/VirtualStore.</p>
  
  <p>Is there a way to somehow override this?</p>