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:

ConstantValueDescription
QWebEnginePage::Notifications0Web notifications for the end-user.
QWebEnginePage::Geolocation1Location hardware or service.
QWebEnginePage::MediaAudioCapture2Audio capture devices, such as microphones.
QWebEnginePage::MediaVideoCapture3Video devices, such as cameras.
QWebEnginePage::MediaAudioVideoCapture4Both audio and video capture devices.
QWebEnginePage::MouseLock5Mouse locking, which locks the mouse pointer to the web view and is typically used in games.
QWebEnginePage::DesktopVideoCapture (since Qt 5.10)6Video output capture, that is, the capture of the user's display, for screen sharing purposes for example.
QWebEnginePage::DesktopAudioVideoCapture (since Qt 5.10)7Both audio and video output capture.
QWebEnginePage::ClipboardReadWrite (since Qt 6.8)8Read 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)9Access 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:

ConstantValueDescription
QWebEnginePage::PermissionUnknown0It is unknown whether the user grants or denies permission.
QWebEnginePage::PermissionGrantedByUser1The user has granted permission.
QWebEnginePage::PermissionDeniedByUser2The 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.

This signal is emitted when the web site identified by securityOrigin cancels a previously issued request to make use of feature.

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().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.