- Qt 6.11
- Qt WebEngine
- C++ Classes
- QtWebEngineCore
- QWebEnginePage
- Qt 6.11.0 Reference Documentation

# Obsolete Members for QWebEnginePage

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

## Public Types

`(deprecated in 6.8)` enum | Feature { Notifications, Geolocation, MediaAudioCapture, MediaVideoCapture, MediaAudioVideoCapture, …, LocalFontsAccess }
`(deprecated in 6.8)` enum | PermissionPolicy { PermissionUnknown, PermissionGrantedByUser, PermissionDeniedByUser }

## Public Functions

`(deprecated in 6.8)` void | setFeaturePermission(const QUrl &securityOrigin, QWebEnginePage::Feature feature, QWebEnginePage::PermissionPolicy policy)

## Signals

`(deprecated in 6.8)` void | featurePermissionRequestCanceled(const QUrl &securityOrigin, QWebEnginePage::Feature feature)
`(deprecated in 6.8)` void | featurePermissionRequested(const QUrl &securityOrigin, QWebEnginePage::Feature feature)
`(deprecated in 6.5)` void | quotaRequested(QWebEngineQuotaRequest quotaRequest)

## Member Type Documentation

### `[deprecated in 6.8]` enum QWebEnginePage::Feature

This enum is deprecated since 6.8. We strongly advise against using it in new code.

Replaced by QWebEnginePermission::Feature.

This enum describes the platform feature access categories that the user may be asked to grant or deny access to:

Constant | Value | Description
--- | --- | ---
`QWebEnginePage::Notifications` | `0` | Web notifications for the end-user.
`QWebEnginePage::Geolocation` | `1` | Location hardware or service.
`QWebEnginePage::MediaAudioCapture` | `2` | Audio capture devices, such as microphones.
`QWebEnginePage::MediaVideoCapture` | `3` | Video devices, such as cameras.
`QWebEnginePage::MediaAudioVideoCapture` | `4` | Both audio and video capture devices.
`QWebEnginePage::MouseLock` | `5` | Mouse locking, which locks the mouse pointer to the web view and is typically used in games.
`QWebEnginePage::DesktopVideoCapture (since Qt 5.10)` | `6` | Video output capture, that is, the capture of the user's display, for screen sharing purposes for example.
`QWebEnginePage::DesktopAudioVideoCapture (since Qt 5.10)` | `7` | Both audio and video output capture.
`QWebEnginePage::ClipboardReadWrite (since Qt 6.8)` | `8` | Read and write access for the clipboard. If both JavascriptCanPaste and JavascriptCanAccessClipboard settings are enabled, this permission will always be granted automatically and no feature requests will be made.
`QWebEnginePage::LocalFontsAccess (since Qt 6.8)` | `9` | Access to the fonts installed on the user's machine. Only available on desktop platforms.

See also featurePermissionRequested(), featurePermissionRequestCanceled(), setFeaturePermission(), and PermissionPolicy.

### `[deprecated in 6.8]` enum QWebEnginePage::PermissionPolicy

This enum is deprecated since 6.8. We strongly advise against using it in new code.

Replaced by QWebEnginePermission::State.

This enum describes the permission policies that the user may set for data or device access:

Constant | Value | Description
--- | --- | ---
`QWebEnginePage::PermissionUnknown` | `0` | It is unknown whether the user grants or denies permission.
`QWebEnginePage::PermissionGrantedByUser` | `1` | The user has granted permission.
`QWebEnginePage::PermissionDeniedByUser` | `2` | The user has denied permission.

See also featurePermissionRequested(), featurePermissionRequestCanceled(), setFeaturePermission(), and Feature.

## Member Function Documentation

### `[signal, deprecated in 6.8]` void QWebEnginePage::featurePermissionRequestCanceled(const QUrl &securityOrigin, QWebEnginePage::Feature feature)

This function is deprecated since 6.8. We strongly advise against using it in new code.

This signal is no longer emitted.

See also featurePermissionRequested() and setFeaturePermission().

### `[signal, deprecated in 6.8]` void QWebEnginePage::featurePermissionRequested(const QUrl &securityOrigin, QWebEnginePage::Feature feature)

This function is deprecated since 6.8. We strongly advise against using it in new code.

Use permissionRequested() instead.

This signal is emitted when the web site identified by securityOrigin requests to make use of the resource or device identified by feature.

See also featurePermissionRequestCanceled() and setFeaturePermission().

### `[signal, deprecated in 6.5]` void QWebEnginePage::quotaRequested(QWebEngineQuotaRequest quotaRequest)

This function is deprecated since 6.5. We strongly advise against using it in new code.

This signal is no longer emitted.

Requesting host quota is no longer supported by Chromium. The behavior of navigator.webkitPersistentStorage is identical to navigator.webkitTemporaryStorage.

For further details, see https://crbug.com/1233525

### `[deprecated in 6.8]` void QWebEnginePage::setFeaturePermission(const QUrl &securityOrigin, QWebEnginePage::Feature feature, QWebEnginePage::PermissionPolicy policy)

This function is deprecated since 6.8. We strongly advise against using it in new code.

Use QWebEnginePermission's grant(), deny(), and reset() functions instead.

Sets the permission for the web site identified by securityOrigin to use feature to policy.

Note: This method is primarily for calling after a featurePermissionRequested() signal has been emitted to trigger the feature permission response. It can also be called before a request has been emitted, but will only set a granted permission for passive checks, mainly for Notification APIs that can check if permission has already been granted before explicitly requesting it.

See also featurePermissionRequested() and featurePermissionRequestCanceled().