class SKryptonWebSettings : NativeInterface
A class representing settings used by the backing web engine.
var accelerated2dCanvasEnabled: Boolean
Specifies whether the HTML5 2D canvas should be a OpenGL framebuffer. This makes many painting operations faster, but slows down pixel access. Enabled by default if available. |
|
var allowGeolocationOnInsecureOrigins: Boolean
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. |
|
var allowRunningInsecureContent: Boolean
By default, HTTPS pages cannot run JavaScript, CSS, plugins or web-sockets from HTTP URLs. This provides an override to get the old insecure behavior. Disabled by default. |
|
var autoLoadIconsForPage: Boolean
Automatically downloads icons for web pages. Enabled by default. |
|
var autoLoadImages: Boolean
Automatically downloads images for web pages. When this setting is disabled, images are loaded from the cache. Enabled by default. |
|
var defaultTextEncoding: Charset
Default text encoding used by the web engine. |
|
var errorPageEnabled: Boolean
Enables displaying the built-in error pages of Chromium. Enabled by default. |
|
var focusOnNavigationEnabled: Boolean
Gives focus to the view associated with the page, whenever a navigation operation occurs (load, stop, reload, reload and bypass cache, forward, backward, set content, and so on). Enabled by default. |
|
var fullScreenSupportEnabled: Boolean
Enables fullscreen support in an application. Disabled by default. |
|
val handle: CPointer
Native pointer |
|
var hyperlinkAuditingEnabled: Boolean
Enables support for the ping attribute for hyperlinks. Disabled by default. |
|
var javascriptCanAccessClipboard: Boolean
Allows JavaScript programs to read from and write to the clipboard. Writing to the clipboard is always allowed if it is specifically requested by the user. Disabled by default. |
|
var javascriptCanOpenWindows: Boolean
Allows JavaScript programs to open popup windows without user interaction. Enabled by default. |
|
var javascriptEnabled: Boolean
Enables the running of JavaScript programs. Enabled by default. |
|
var linksIncludedInFocusChain: Boolean
Includes hyperlinks in the keyboard focus chain. Enabled by default. |
|
var localContentCanAccessFileUrls: Boolean
Allows locally loaded documents to access other local URLs. Enabled by default. |
|
var localContentCanAccessRemoteUrls: Boolean
Allows locally loaded documents to ignore cross-origin rules so that they can access remote resources that would normally be blocked, because all remote resources are considered cross-origin for a local file. Remote access that would not be blocked by cross-origin rules is still possible when this setting is disabled. Note that disabling this setting does not stop XMLHttpRequests or media elements in local files from accessing remote content. Basically, it only stops some HTML subresources, such as scripts, and therefore disabling this setting is not a safety mechanism. Disabled by default. |
|
var localStorageEnabled: Boolean
Enables support for the HTML 5 local storage feature. Enabled by default. |
|
var pluginsEnabled: Boolean
Enables support for Pepper plugins, such as the Flash player. Disabled by default. |
|
var printElementBackgrounds: Boolean
Turns on printing of CSS backgrounds when printing a web page. Enabled by default. |
|
var screenCaptureEnabled: Boolean
Enables screen capture in an application. Disabled by default. |
|
var scrollAnimatorEnabled: Boolean
Enables animated scrolling. Disabled by default. |
|
var spatialNavigationEnabled: Boolean
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. |
|
var touchIconsEnabled: Boolean
Enables support for touch icons and precomposed touch icons Disabled by default. |
|
var webGlEnabled: Boolean
Enables support for HTML 5 WebGL. Enabled by default if available. |
|
var xssAuditingEnabled: Boolean
Monitors load requests for cross-site scripting attempts. Suspicious scripts are blocked and reported in the inspector's JavaScript console. Disabled by default, because it might negatively affect performance. |
fun close(): Unit
Doesn't do anything, dispose the web view using this settings instead. |
|
fun getFontFamily(family: FontFamily): String
Gets the actual font family for the specified generic font family. |
|
fun getFontSize(font: FontSize): Int
Gets the default font size. |
|
fun resetAttribute(attribute: WebAttribute): Unit
Resets the given attribute. |
|
fun resetFontFamily(family: FontFamily): Unit
Resets the default font family. |
|
fun resetFontSize(font: FontSize): Unit
Resets the default font size. |
|
fun setFontFamily(whichFamily: FontFamily, family: String): Unit
Sets the actual font family for the specified generic font family. |
|
fun setFontSize(font: FontSize, size: Int): Unit
Sets the default font size. |
fun dispose(): Unit
Disposes this object, usually same action as close |
val defaults: SKryptonWebSettings
Settings instance that is used by default. |