title: Using FileDialog to browse for a folder in QtQuick
body: <p>I am trying to figure out how to setup the FileDialog of <code>QtQuick.Dialogs 1.2</code> to select a folder instead of file(s) with no success so far. Here is my code. The user should select at least 1 file so that the FileDialog accept button works. </p>
  
  <pre><code>FileDialog {
      id:dialogFile;
      title: "Please select folder which contains positive training data";
      folder: shortcuts.home;
  
      onAccepted: {
          console.log("User has selected " + dialogFile.folder);
      }
  }
  </code></pre>
  
  <p>Is there any settings/tricks to make this only browse for folder, something like the FolderBrowserDialog in .NET? </p>