title: FileDialog in QTQuick (QML): Save file under given name
body: <p>We're building a Qt Quick app, that must be able to save a file <strong>under a given name</strong>.</p>
  
  <p>In the <a href="http://qt-project.org/doc/qt-5.1/qtquickdialogs/qml-qtquick-dialogs1-filedialog.html" rel="noreferrer">FileDialog</a> component you can only set a directory. This is not very user-friendly, since you don't want to type in a filename by hand every time you download a file.</p>
  
  <p>So far we tried different things</p>
  
  <ol>
  <li><p>FileDialog from QtQuick.Dialogs: filename cannot be set</p></li>
  <li><p>Native dialog via QPlatformFileDialogHelper (naughty private c++ hack): filename cannot be set on Linux (Gnome)</p></li>
  <li><p>Native dialog via static QFileDialog::getSaveFileName(): in Quick application there is no QWidget available for 'parent'</p></li>
  <li><p>QT dialog via QFileDialog instance: Modality doeas not work, since 'parent' is not set. In Quick application there is no QWidget available for setParent() call</p></li>
  </ol>
  
  <p>(Using C++ with QT 5.1 and QtQuick 2.1 incl. all desktop components)</p>