以下成员源于类 QFileDialog 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
confirmOverwrite
: bool
(obsolete)
nameFilterDetailsVisible
: bool
(obsolete)
readOnly
: bool
(obsolete)
resolveSymlinks
: bool
(obsolete)
QStringList
|
过滤 () const |
(obsolete)
void
|
selectFilter (const QString & filter ) |
(obsolete)
QString
|
selectedFilter () const |
(obsolete)
void
|
setFilter (const QString & filter ) |
(obsolete)
void
|
setFilters (const QStringList & filters ) |
This property holds whether the filedialog should ask before accepting a selected file, when the accept mode is AcceptSave.
使用 setOption ( DontConfirmOverwrite , ! enabled ) or ! testOption ( DontConfirmOverwrite ) 代替。
访问函数:
| bool | confirmOverwrite () const |
| void | setConfirmOverwrite (bool enabled ) |
This property holds this property holds whether the filter details is shown or not.
When this property is true (the default), the filter details are shown in the combo box. When the property is set to false, these are hidden.
使用 setOption ( HideNameFilterDetails , ! enabled ) or ! testOption ( HideNameFilterDetails ).
该特性在 Qt 4.4 引入。
访问函数:
| bool | isNameFilterDetailsVisible () const |
| void | setNameFilterDetailsVisible (bool enabled ) |
This property holds whether the filedialog is read-only.
If this property is set to false, the file dialog will allow renaming, and deleting of files and directories and creating directories.
使用 setOption ( ReadOnly , enabled ) 或 testOption ( ReadOnly ) 代替。
访问函数:
| bool | isReadOnly () const |
| void | setReadOnly (bool enabled ) |
This property holds whether the filedialog should resolve shortcuts.
If this property is set to true, the file dialog will resolve shortcuts or symbolic links.
使用 setOption ( DontResolveSymlinks , ! enabled ) or ! testOption ( DontResolveSymlinks ).
访问函数:
| bool | resolveSymlinks () const |
| void | setResolveSymlinks (bool enabled ) |
使用 nameFilters () 代替。
另请参阅 setFilters ().
使用 selectNameFilter () 代替。
使用 selectedNameFilter () 代替。
使用 setNameFilter () 代替。
使用 setNameFilters () 代替。
另请参阅 过滤 ().