• 首页
  • Qt文档
  • DTK文档
  • 玲珑文档
  • dfiledialog_zh

    Class::DFileDialog

    暂无该属性


    Detailed Description

    DFileDialog 类提供了一个可供用户选择文件或目录的对话框.

    你也可以通过 和 来为文件选择框增加额外的输入内容控件,并通过 和 来得到用户所输入的值。

    DFileDialog::DFileDialog

    [private constructor  ]

    DFileDialog(int *parent, const QString &caption, const QString &directory, const QString &filter)

    Class::DComboBoxOptions

    DFileDialog::DComboBoxOptions


    Detailed Description

    Class::DLineEditOptions

    DFileDialog::DLineEditOptions


    Detailed Description

    DFileDialog::addComboBox

    [private plain  ]

    void addComboBox(const QString &text, const int &data)

    Add an extra ComboBox widget to the DFileDialog

    为文件选择框追加一个下拉单选框 text ComboBox description text (as key for getting value). data ComboBox options in a string list

    text 追加选项的描述文字(作为键) data 多选框的选项列表

    DFileDialog::addComboBox

    [private plain  ]

    void addComboBox(const QString &text, const DFileDialog::DComboBoxOptions &options)

    Add an extra ComboBox widget to the DFileDialog

    为文件选择框追加一个下拉单选框 text ComboBox description text (as key for getting value). options ComboBox data

    text 追加选项的描述文字(作为键) options 多选框的属性信息

    DFileDialog::addLineEdit

    [private plain  ]

    void addLineEdit(const QString &text)

    Add an extra LineEdit widget to the DFileDialog

    为文件选择框追加一个输入框 text LineEdit description text (as key for getting value). text 追加选项的描述文字(作为键)

    DFileDialog::addLineEdit

    [private plain  ]

    void addLineEdit(const QString &text, const DFileDialog::DLineEditOptions &options)

    Add an extra LineEdit widget to the DFileDialog

    为文件选择框追加一个输入框 text LineEdit description text (as key for getting value). options LineEdit data

    text 追加选项的描述文字(作为键) options 输入框的属性信息

    DFileDialog::setAllowMixedSelection

    [private plain  ]

    void setAllowMixedSelection(bool on)

    Allow mixed selection Allow user choose files and folders at the same time when selecting multiple files. By default user can only select files (folder not included) when selecting multiple files.

    Notice that this option only works when file mode is QFileDialog::ExistingFiles

    on enable this feature or not.

    DFileDialog::getComboBoxValue

    [private plain  ]

    QString getComboBoxValue(const QString &text) const

    Get the added extra ComboBox value

    获得所追加的额外多选框的值 text The description (key) of the ComboBox. text 所追加的多选框的描述名(作为键)

    See also addComboBox()

    DFileDialog::getLineEditValue

    [private plain  ]

    QString getLineEditValue(const QString &text) const

    Get the added extra LineEdit value

    获得所追加的额外输入框的值 text The description (key) of the ComboBox. text 所追加的多选框的描述名(作为键)

    See also addLineEdit()

    DFileDialog::setVisible

    [private plain  ]

    void setVisible(bool visible)