The QFileDialog class provides a dialog that allow users to select files or directories.
The QFileDialog class enables a user to traverse the file system in order to select one or many files or a directory.
The easiest way to create a QFileDialog is to use the static functions. On Windows, Mac OS X, KDE and GNOME, these static functions will call the native file dialog when possible.
这个QFileDialog类提供了一个dialog允许用户去选择文件和目录
这个QFileDialog类能让用户去传输那个文件系统为了选择
In the above example, a modal QFileDialog is created using a static function. The dialog initially displays the contents of the "/home/jana" directory, and displays files matching the patterns given in the string "Image Files (*.png *.jpg *.bmp)". The parent of the file dialog is set tothis, and the window title is set to "Open Image".
QFileDialog
在上面的列子,一个模态的
默认的,在本地的