Hi all,
I need a "select folders + files" dialog.
In which using same QFileDialog i can select either file or folder.
Regards
Merry
Hi all,
I need a "select folders + files" dialog.
In which using same QFileDialog i can select either file or folder.
Regards
Merry
Always Believe in Urself
Merry
Yeah, I tried but no use i am able to select files only but nt directories.
Always Believe in Urself
Merry
post your code snippet having file dlg operation.
Here is the code:
Qt Code:
To copy to clipboard, switch view to plain text mode
Always Believe in Urself
Merry
getOpenFileName(...) is a static method and has its own instance. The dialog instance created by you with flags won't affect this instance.
why can't you use getExistingDirectory ?
Thanks for the reply.
using this i am able to select dirs ony not files. I want to make a dialog in which i can able to select both files and dirs .why can't you use getExistingDirectory ?
Always Believe in Urself
Merry
you can try this,
Qt Code:
int nMode = dlg->exec();To copy to clipboard, switch view to plain text mode
I also have the same problems, and after searching and trying for some times, I found this solution works. You could try.
http://www.qtcentre.org/threads/3422...108#post220108
Bookmarks