Obsolete Members for WebEngineView
QML 类型WebEngineView的以下成员已被弃用。提供它们是为了让旧源代码继续工作。我们强烈建议不要在新代码中使用它们。
属性
- Feature : enumeration
(deprecated in 6.8)
信号
- featurePermissionRequested(url securityOrigin, Feature feature)
(since QtWebEngine 1.1, deprecated in 6.8)
- quotaRequested(QuotaRequest request)
(since QtWebEngine 1.7, deprecated in 6.5)
方法
- void grantFeaturePermission(url securityOrigin, Feature feature, bool granted)
(since QtWebEngine 1.1, deprecated in 6.8)
属性文档
Feature : enumeration |
自 QtWebEngine 6.8 起,该属性已被弃用。我们强烈建议不要在新代码中使用它。
由 WebEnginePermission.PermissionType 代替。
描述用户可能被要求授予或拒绝访问的平台功能访问类别:
常量 | 描述 |
---|---|
WebEngineView.Geolocation | 位置硬件或服务。 |
WebEngineView.MediaAudioCapture | 音频采集设备,如麦克风。 |
WebEngineView.MediaVideoCapture | 视频设备,如摄像头。 |
WebEngineView.MediaAudioVideoCapture | 音频和视频采集设备。 |
WebEngineView.DesktopVideoCapture | 视频输出捕获,即用户显示屏的捕获。(在 Qt 5.10 中添加) |
WebEngineView.DesktopAudioVideoCapture | 音频和视频输出捕获。(在 Qt 5.10 中添加) |
WebEngineView.Notifications | 为最终用户提供网络通知。 |
WebEngineView.ClipboardReadWrite | 剪贴板的读写访问。如果同时启用了javascriptCanPaste 和javascriptCanAccessClipboard 设置,该权限将始终自动授予,且不会提出任何功能请求。(在 Qt 6.8 中添加) |
WebEngineView.LocalFontsAccess | 访问用户机器上安装的字体。仅适用于桌面平台。(在 Qt 6.8 中添加) |
另请参阅 featurePermissionRequested() 和grantFeaturePermission()。
信号文档
|
自 QtWebEngine 6.8 起,该信号已被弃用。我们强烈建议不要在新代码中使用它。
请使用permissionRequested() 代替它。
当securityOrigin 标识的网站请求使用feature 标识的资源或设备时,将发出该信号。
注意: 相应的处理程序是onFeaturePermissionRequested
。
该信号在 QtWebEngine 1.1 中引入。
另请参阅 grantFeaturePermission() 。
|
自 QtWebEngine 6.5 起,该信号已被弃用。我们强烈建议不要在新代码中使用它。
此信号已不再发出。
Chromium 不再支持请求主机配额。navigator.webkitPersistentStorage 的行为与 navigator.webkitTemporaryStorage 相同。
更多详情,请参阅 https://crbug.com/1233525。
注: 相应的处理程序是onQuotaRequested
。
该信号在 QtWebEngine 1.7 中引入。
另请参阅 QuotaRequest 。
方法文档
自 QtWebEngine 6.8 起,该方法已被弃用。我们强烈建议不要在新代码中使用该方法。
请使用webEnginePermission.grant() 或webEnginePermission.deny() 代替。
根据granted 设置或取消securityOrigin 所标识的网站使用feature 的权限。
此方法在 QtWebEngine 1.1 中引入。
另请参阅 featurePermissionRequested().
© 2025 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.