Obsolete Members for QFileDialog | Qt Widgets 5.12.9

- Qt 5.12
- Qt Widgets
- C++ Classes
- QFileDialog
- Qt 5.12.9 Reference Documentation

# Obsolete Members for QFileDialog

The following members of class QFileDialog are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Properties

- `(obsolete)` confirmOverwrite : bool
- `(obsolete)` nameFilterDetailsVisible : bool
- `(obsolete)` readOnly : bool

- `(obsolete)` resolveSymlinks : bool
- `(obsolete)` windowIconText : QString

## Public Functions

`(obsolete)` | dumpObjectInfo()
`(obsolete)` | dumpObjectTree()
`(obsolete)` QWidget * | extension() const
`(obsolete)` bool | isEnabledToTLW() const
`(obsolete)` bool | isTopLevel() const
`(obsolete)` Qt::Orientation | orientation() const
`(obsolete)` void | setExtension(QWidget *extension)
`(obsolete)` void | setOrientation(Qt::Orientation orientation)
`(obsolete)` QWidget * | topLevelWidget() const

## Public Slots

`(obsolete)` void | showExtension(bool showIt)

## Property Documentation

### 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

Use setOption(DontConfirmOverwrite, !enabled) or !testOption(DontConfirmOverwrite) instead.

Access functions:

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.

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.

Use setOption(HideNameFilterDetails, !enabled) or !testOption(HideNameFilterDetails).

This property was introduced in Qt 4.4.

Access functions:

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.

Use setOption(ReadOnly, enabled) or testOption(ReadOnly) instead.

Access functions:

bool | isReadOnly() const
void | setReadOnly(bool enabled)

### resolveSymlinks : 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 resolve shortcuts

If this property is set to true, the file dialog will resolve shortcuts or symbolic links.

Use setOption(DontResolveSymlinks, !enabled) or !testOption(DontResolveSymlinks).

Access functions:

bool | resolveSymlinks() const
void | setResolveSymlinks(bool enabled)