PDA

View Full Version : Auto resolve in QFileDialog



Levon Nikoghosyan
28th November 2006, 07:36
When I try to ty type in QFileDialog "Look in" field something like "./A..." and there are any directory with first letter 'A' in the current directory content of look in field changed (resolved ) automatically to full path - something like "/workspace/file_dilaog/A..."

Here is source code :
QFileDialog d((this,"Browse");
d.setAcceptMode(QFileDialog::AcceptOpen);
d.setFileMode(QFileDialog::DirectoryOnly);
d.setLabelText(QFileDialog::Accept, "Select");
d.setLabelText(QFileDialog::FileName, "Directory:");
d.setLabelText(QFileDialog::FileType, "");
d.setResolveSymlinks(false);

Please help - I do not want to autoresolving happens.
Thannks in advance

e8johan
29th November 2006, 11:15
This is default behaviour - at least on Windows. If you do not want it - take the QFileDialog class and modify it.