user_mail07
15th April 2008, 18:21
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.
QString path = qApp->applicationDirPath ();
QFileDialog* fd = new QFileDialog( path );
fd->setPreviewMode( QFileDialog::Contents );
fd->exec();
Any ideas or hints will be helpful.
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.
QString path = qApp->applicationDirPath ();
QFileDialog* fd = new QFileDialog( path );
fd->setPreviewMode( QFileDialog::Contents );
fd->exec();
Any ideas or hints will be helpful.