打开文件对话框。
属性#
方法#
| 成员 | 说明 |
|---|---|
| OpenFileDialog | 构造函数。 |
| execute | 打开文件对话框。 |
| getFileNamesCount | 获取所选文件数量。 |
| getFileNames | 多选时获取选中的文件名。 |
OpenFileDialog(parent)#
构造函数。
- 参数:
MQWidget.WindowBase parent - 父窗口
execute #
打开文件对话框。
- 返回值:
bool - 是否已选择文件
getFileNamesCount #
获取所选文件数量。
- 返回值:
int - 所选文件数量
getFileNames(index)#
多选时获取选中的文件名。
- 参数:
int index - 所选文件索引
- 返回值:
string - 文件名