Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Properties | List of all members
WebSettings Class Reference

Provides access to the settings of a WebPage or WebView. More...

Properties

bool autoLoadImages
 Whether images are automatically loaded in web pages.
string cursiveFontFamily
 The font family used for cursive font.
int defaultFixedFontSize
 The default font size for fixed-pitch text.
int defaultFontSize
 The default font size for regular text.
string defaultTextEncoding
 The default text encoding system.
bool developerExtrasEnabled
 Whether extra tools are enabled for web developers.
string fantasyFontFamily
 The font family used for fantasy font.
string fixedFontFamily
 The font family used for fixed font.
bool javaEnabled
 Whether Java is enabled.
bool javascriptCanAccessclipboard
 Whether JavaScript code can access the system clipboard.
bool javascriptCanOpenWindows
 Whether JavaScript code can open new windows.
bool javascriptEnabled
 Whether JavaScript is enabled.
bool linksIncludedInFocusChain
 Whether hyperlinks should be included in the keyboard focus chain.
bool localContentCanAccessRemoteUrls
 Whether locally loaded documents are allowed to access remote urls.
bool localStorageDatabaseEnabled
 Whether support for the HTML 5 local storage feature is enabled or not.
int minimumFontSize
 The hard minimum font size.
int minimumLogicalFontSize
 The minimum logical font size that is applied when zooming out.
bool offlineStorageDatabaseEnabled
 Whether support for the HTML 5 offline storage feature is enabled or not.
bool offlineWebApplicationCacheEnabled
 Whether support for the HTML 5 web application cache feature is enabled or not.
bool persistentStorageEnabled
 Whether persisent settings storage is enabled or not.
bool pluginsEnabled
 Whether plugins are enabled in web pages.
bool printElementBackgrounds
 Whether the background color and images are also drawn when the page is printed.
bool privateBrowsingEnabled
 Whether WebKit is prevented from recording visited pages in the history and storing web page icons.
string sansSerifFontFamily
 The font family used for sans-serif font.
string serifFontFamily
 The font family used for serif font.
string standardFontFamily
 The font family used for standard font.
url userplatformStyleSheetUrl
 The location of a user stylesheet to load with every web page.
bool zoomTextOnly
 Whether the zoom factor on a frame applies only to the text or to all content.

Detailed Description

Provides access to the settings of a WebPage or WebView.

In addition, there is a 'webSettings' global content property that provides access to the global web settings.

Note
This component cannot be created in QML.
See Also
WebPage, WebView

Property Documentation

bool WebSettings::autoLoadImages
readwrite

Whether images are automatically loaded in web pages.

This is enabled by default.

bool WebSettings::developerExtrasEnabled
readwrite

Whether extra tools are enabled for web developers.

This is disabled by default.

bool WebSettings::javaEnabled
readwrite

Whether Java is enabled.

This is enabled by default.

bool WebSettings::javascriptEnabled
readwrite

Whether JavaScript is enabled.

This is enabled by default.

bool WebSettings::linksIncludedInFocusChain
readwrite

Whether hyperlinks should be included in the keyboard focus chain.

This is enabled by default.

bool WebSettings::localContentCanAccessRemoteUrls
readwrite

Whether locally loaded documents are allowed to access remote urls.

This is disabled by default.

bool WebSettings::localStorageDatabaseEnabled
readwrite

Whether support for the HTML 5 local storage feature is enabled or not.

This is disabled by default.

bool WebSettings::offlineStorageDatabaseEnabled
readwrite

Whether support for the HTML 5 offline storage feature is enabled or not.

This is disabled by default.

bool WebSettings::offlineWebApplicationCacheEnabled
readwrite

Whether support for the HTML 5 web application cache feature is enabled or not.

This is disabled by default.

bool WebSettings::persistentStorageEnabled
readwrite

Whether persisent settings storage is enabled or not.

This is disabled by default.

bool WebSettings::pluginsEnabled
readwrite

Whether plugins are enabled in web pages.

Qt plugins with a mimetype such as "application/x-qt-plugin" are not affected by this setting.

This is disabled by default.

bool WebSettings::printElementBackgrounds
readwrite

Whether the background color and images are also drawn when the page is printed.

This is enabled by default.

bool WebSettings::privateBrowsingEnabled
readwrite

Whether WebKit is prevented from recording visited pages in the history and storing web page icons.

This is disabled by default.

url WebSettings::userplatformStyleSheetUrl
readwrite

The location of a user stylesheet to load with every web page.

The location must be either a path on the local filesystem, or a data URL with UTF-8 and Base64 encoded data, such as:

"data:text/css;charset=utf-8;base64,cCB7IGJhY2tncm91bmQtY29sb3I6IHJlZCB9Ow=="

Note
If the base64 data is not valid, the style will not be applied.
bool WebSettings::zoomTextOnly
readwrite

Whether the zoom factor on a frame applies only to the text or to all content.

This is disabled by default.