Folder Chooser Dialog
-
in QFileDialog, I have to choose a file. But how can I choose a folder?
-
"QFileDialog::getExistingDirectory()":http://qt-project.org/doc/qt-4.8/qfiledialog.html#getExistingDirectory
or
use "options":http://qt-project.org/doc/qt-4.8/qfiledialog.html#options-prop and set QFileDialog::ShowDirsOnly -
Thank you~
While the "Folder Chooser Dialog" is quite different with File Chooser Dialog.
[quote author="raven-worx" date="1381299378"]"QFileDialog::getExistingDirectory()":http://qt-project.org/doc/qt-4.8/qfiledialog.html#getExistingDirectory
or
use "options":http://qt-project.org/doc/qt-4.8/qfiledialog.html#options-prop and set QFileDialog::ShowDirsOnly[/quote] -
I find that the dialog uses English as default, how can I change it to other languages?
[quote author="raven-worx" date="1381299378"]"QFileDialog::getExistingDirectory()":http://qt-project.org/doc/qt-4.8/qfiledialog.html#getExistingDirectory
or
use "options":http://qt-project.org/doc/qt-4.8/qfiledialog.html#options-prop and set QFileDialog::ShowDirsOnly[/quote] -
which one do you use now?
The static version is the one from the OS and thus has the same language.
If you created an instance it's ordinary dialog composed of QWidgets. Thus you will need to "install a translator":http://qt-project.org/doc/qt-4.8/qtranslator.html#details to your application in order to get the dialog translated correctly (and load the Qt translation file).