title: how to write a file on iPhone using qt5.2
body: <p>I'm writing an app on the iPhone using Qt5.2. When the app is running I'd like to
  save some information from the user input to a file so the next time the user start the app he will have the save information.</p>
  
  <p>I tried to do this:</p>
  
  <pre><code>QString cur_dir = QDir::currentPath();
  QString init_file = cur_dir+"/init.xml";
  
  QSettings settings( init_file, QSettings::IniFormat );
  settings.setValue("General/SavedVariable", sel_label-&gt;text() );
  </code></pre>
  
  <p>but the file was not created when i verify doing this:</p>
  
  <pre><code>if( !QFileInfo( init_file ).exists() )
      std::cout &lt;&lt; "FILE DOES NOT EXISTS " &lt;&lt; std::endl;
  else
      std::cout &lt;&lt; "FILE EXISTS " &lt;&lt; std::endl;
  </code></pre>