nikhilqt
18th January 2010, 07:45
QFileDialog l_pFiledDlg;
QString sFilename1;
l_pFiledDlg.setViewMode(QFileDialog::Detail);
sFilename1 = l_pFiledDlg.getOpenFileName(this,tr("Open Files"), sPath, tr("All Files (*.*)"));
Using the above code the filedialog which opens is showing "list" as its view mode. It is not changing to "detail" view by default.
I think everything seems correct, but I do not know why it is not working?
QString sFilename1;
l_pFiledDlg.setViewMode(QFileDialog::Detail);
sFilename1 = l_pFiledDlg.getOpenFileName(this,tr("Open Files"), sPath, tr("All Files (*.*)"));
Using the above code the filedialog which opens is showing "list" as its view mode. It is not changing to "detail" view by default.
I think everything seems correct, but I do not know why it is not working?