QFileDialog, how can i select only files, or only dirs, or files and dirs ?
-
QFileDialog, how can i select only files, or only dirs, or files and dirs ?
i use serFileMode(QFileDialog::Directory), i can select dirs and files, or only dirs...but i can''t only select files....
thank you! -
@opengpu2
QFileDialog::ExistingFile or QFileDialog::ExistingFile ? Is either one not sufficient? -
QFileDialog::Directory is all good , except that the first selected one must be Dir....if not, i can't click choose button...
@opengpu2
Not clear what you actually want IMHO.
Do you want to click multiple dirs plus files or have the possibilities of choosing multiple files only?
Either way is possible, isn't it?
The only logical way of handling when clicking a dir is to enter the dir and display files of subdir.