spud
31st October 2007, 15:56
Hi,
in my app I let users select an image file with the following call:
QString fileName = QFileDialog::getOpenFileName(this);
The problem is on Windows when I select the folder "Sample Images" in "My Pictures", instead of opening the folder, the function returns "xxx.lnk".
I know the folder is just a shortcut, but since I haven't specified "DontResolveSymlinks" I don't know why this happens.
I tried adding "DontUseNativeDialog" as a workaround, and the Qt dialog managed to open the folder, but when I select a file it complains "File not found".
I'm not sure what I'm doing wrong. Qt Designer is able to follow those shortcut just fine.
in my app I let users select an image file with the following call:
QString fileName = QFileDialog::getOpenFileName(this);
The problem is on Windows when I select the folder "Sample Images" in "My Pictures", instead of opening the folder, the function returns "xxx.lnk".
I know the folder is just a shortcut, but since I haven't specified "DontResolveSymlinks" I don't know why this happens.
I tried adding "DontUseNativeDialog" as a workaround, and the Qt dialog managed to open the folder, but when I select a file it complains "File not found".
I'm not sure what I'm doing wrong. Qt Designer is able to follow those shortcut just fine.