Allows configuration of browser properties and attributes. 更多...
import 语句: | import QtWebEngine 1.5 |
Since: | QtWebEngine 1.1 |
The WebEngineSettings type can be used to configure browser properties and generic attributes, such as JavaScript support, focus behavior, and access to remote content. This type is uncreatable, but the default settings for all web engine views can be accessed by using the WebEngine.settings 特性。
Each web engine view can have individual settings that can be accessed by using the WebEngineView.settings 特性。
Specifies whether the HTML 5 2D canvas should be an OpenGL framebuffer. This makes many painting operations faster, but slows down pixel access.
Enabled by default if available.
该 QML 特性在 QtWebEngine 1.3 引入。
Since Qt 5.7, only secure origins such as HTTPS have been able to request Geolocation features. This provides an override to allow non secure origins to access Geolocation again.
Disabled by default.
该 QML 特性在 QtWebEngine 1.5 引入。
By default, HTTPS pages cannot run JavaScript, CSS, plugins or web-sockets from HTTP URLs. This used to be possible and this provides an override to get the old behavior.
Disabled by default.
该 QML 特性在 QtWebEngine 1.4 引入。
Automatically downloads icons for web pages.
Enabled by default.
该 QML 特性在 QtWebEngine 1.3 引入。
Automatically loads images on web pages.
Enabled by default.
Sets the default encoding. The value must be a string describing an encoding such as "utf-8" or "iso-8859-1".
If left empty, a default value will be used.
该 QML 特性在 QtWebEngine 1.2 引入。
Enables displaying the built-in error pages of Chromium.
Enabled by default.
Focus is given to the view whenever a navigation operation occurs (load, stop, reload, reload and bypass cache, forward, backward, set content, and so on).
Enabled by default. See WebEngine 食谱浏览器 for an example where this property is disabled.
该 QML 特性在 QtWebEngine 1.4 引入。
Tells the web engine whether fullscreen is supported in this application or not.
Enabled by default.
该 QML 特性在 QtWebEngine 1.2 引入。
启用支持
ping
attribute for hyperlinks.
Disabled by default.
Allows JavaScript programs to read from or write to the clipboard. Writing to the clipboard is always allowed if it is specifically requested by the user.
Disabled by default.
Allows JavaScript programs to open popup windows without user interaction.
Enabled by default.
Enables the running of JavaScript programs.
Enabled by default.
Includes hyperlinks in the keyboard focus chain.
Enabled by default.
Allows locally loaded documents to access other local URLs.
Enabled by default.
Allows locally loaded documents to access remote URLs.
Disabled by default.
Enables support for the HTML 5 local storage feature.
Enabled by default.
Enables support for Pepper plugins, such as the Flash player.
Disabled by default.
另请参阅 Pepper 插件 API .
Turns on printing of CSS backgrounds when printing a web page.
Enabled by default.
该 QML 特性在 QtWebEngine 1.4 引入。
Tells the web engine whether screen capture is supported in this application or not.
Disabled by default.
该 QML 特性在 QtWebEngine 1.3 引入。
Enables the Spatial Navigation feature, which means the ability to navigate between focusable elements, such as hyperlinks and form controls, on a web page by using the Left, Right, Up and Down arrow keys.
For example, if a user presses the Right key, heuristics determine whether there is an element they might be trying to reach towards the right and which element they probably want.
Disabled by default.
Enables support for touch icons and precomposed touch icons.
Disabled by default.
该 QML 特性在 QtWebEngine 1.3 引入。
Enables support for HTML 5 WebGL.
Enabled by default if available.
该 QML 特性在 QtWebEngine 1.3 引入。