title: getdir in c++, to choose a saving directory
body: <p>I have a <code>qdialog</code> with a <code>qlineedit</code> where the user can write his chosen path to save a file. I would like to implement a <code>pushbutton</code> (Open) where if the user presses it, it will be something similar to <code>uigetdir</code> in <code>matlab</code>. it returns the path chosen in a string. Any suggestions in c++?</p>
  
  <p>Thank you.</p>