Obsolete Members for QDialog | Qt Widgets 5.13.0

Qt 5.13 | Qt Widgets | C++ Classes | QDialog

Qt 5.13.0 Reference Documentation

# Obsolete Members for QDialog

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

## Properties

- `(obsolete)` windowIconText : QString

## Public Functions

`(obsolete)` void | dumpObjectInfo()
`(obsolete)` void | dumpObjectTree()
`(obsolete)` QWidget * | extension() const
`(obsolete)` QList<T> | findChildren(const QRegExp &regExp, Qt::FindChildOptions options) 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)

## Related Non-Members

`(obsolete)` T | qFindChild(const QObject *obj, const QString &name)
`(obsolete)` QList<T> | qFindChildren(const QObject *obj, const QString &name)

## Macros

`(obsolete)` | Q_ENUMS(...)
`(obsolete)` | Q_FLAGS(...)

## Member Function Documentation

### `[slot]` void QDialog::showExtension(bool showIt)

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

If showIt is true, the dialog's extension is shown; otherwise the extension is hidden.

Instead of using this functionality, we recommend that you simply call show() or hide() on the part of the dialog that you want to use as an extension. See the Extension Example for details.

See also show(), setExtension(), and setOrientation().

### QWidget *QDialog::extension() const

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

Returns the dialog's extension or `nullptr` if no extension has been defined.

Instead of using this functionality, we recommend that you simply call show() or hide() on the part of the dialog that you want to use as an extension. See the Extension Example for details.

See also setExtension(), showExtension(), and setOrientation().

### Qt::Orientation QDialog::orientation() const

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

Returns the dialog's extension orientation.

Instead of using this functionality, we recommend that you simply call show() or hide() on the part of the dialog that you want to use as an extension. See the Extension Example for details.

See also setOrientation() and extension().

### void QDialog::setExtension(QWidget *extension)

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

Sets the widget, extension, to be the dialog's extension, deleting any previous extension. The dialog takes ownership of the extension. Note that if `nullptr` is passed, any existing extension will be deleted. This function must only be called while the dialog is hidden.

Instead of using this functionality, we recommend that you simply call show() or hide() on the part of the dialog that you want to use as an extension. See the Extension Example for details.

See also extension(), showExtension(), and setOrientation().

### void QDialog::setOrientation(Qt::Orientation orientation)

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

If orientation is Qt::Horizontal, the extension will be displayed to the right of the dialog's main area. If orientation is Qt::Vertical, the extension will be displayed below the dialog's main area.

Instead of using this functionality, we recommend that you simply call show() or hide() on the part of the dialog that you want to use as an extension. See the Extension Example for details.

See also orientation() and setExtension().