Obsolete Members for QFileDialog

以下成員源於類 QFileDialog 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

特性

公共函數

(obsolete) bool confirmOverwrite () const
(obsolete) bool isNameFilterDetailsVisible () const
(obsolete) bool isReadOnly () const
(obsolete) bool resolveSymlinks () const
(obsolete) void setConfirmOverwrite (bool enabled )
(obsolete) void setNameFilterDetailsVisible (bool enabled )
(obsolete) void setReadOnly (bool enabled )
(obsolete) void setResolveSymlinks (bool enabled )

特性文檔編製

confirmOverwrite : bool

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 )

nameFilterDetailsVisible : bool

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This property holds whether the filter details is shown or not.

當此特性為 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 )

readOnly : bool

This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 )