Guys,

How to disable drop down option in the comboBox in the QFileDialog so user can view only current directory path. I have tried using static such as getSaveFileName etc. But I am not able to either dsiable directory path combobox or drop down paths. I want to restrict user to view only given path.

Qt Code:
  1. QString path = qApp->applicationDirPath ();
  2. QFileDialog* fd = new QFileDialog( path );
  3.  
  4. fd->setPreviewMode( QFileDialog::Contents );
  5. fd->exec();
To copy to clipboard, switch view to plain text mode 
Any ideas or hints will be helpful.