/usr/share/qt5/doc/qtwebkit/qwebsettings.html is in qtwebkit5-doc-html 5.1.1-1ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebsettings.cpp -->
<title>QWebSettings Class | QtWebKit 5.1</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.1</li>
<li>QWebSettings</li>
<li id="buildversion">
Qt 5.1.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#enabling-plugins">Enabling Plugins</a></li>
<li class="level2"><a href="#web-application-support">Web Application Support</a></li>
</ul>
</div>
<h1 class="title">QWebSettings Class</h1>
<!-- $$$QWebSettings-brief -->
<p>The QWebSettings class provides an object to store the settings used by <a href="qwebpage.html">QWebPage</a> and <a href="qwebframe.html">QWebFrame</a>. <a href="#details">More...</a></p>
<!-- @@@QWebSettings -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QWebSettings></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.4</td></tr></table><ul>
<li><a href="qwebsettings-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#FontFamily-enum">FontFamily</a></b> { StandardFont, FixedFont, SerifFont, SansSerifFont, CursiveFont, FantasyFont }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#FontSize-enum">FontSize</a></b> { MinimumFontSize, MinimumLogicalFontSize, DefaultFontSize, DefaultFixedFontSize }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#ThirdPartyCookiePolicy-enum">ThirdPartyCookiePolicy</a></b> { AlwaysAllowThirdPartyCookies, AlwaysBlockThirdPartyCookies, AllowThirdPartyWithExistingCookies }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a></b> { AutoLoadImages, DnsPrefetchEnabled, JavascriptEnabled, JavaEnabled, ..., NotificationsEnabled }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a></b> { MissingImageGraphic, MissingPluginGraphic, DefaultFrameIconGraphic, TextAreaSizeGripCornerGraphic, ..., SearchCancelButtonPressedGraphic }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#cssMediaType">cssMediaType</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#defaultTextEncoding">defaultTextEncoding</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#fontFamily">fontFamily</a></b>(FontFamily<i> which</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#fontSize">fontSize</a></b>(FontSize<i> type</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#localStoragePath">localStoragePath</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#resetAttribute">resetAttribute</a></b>(WebAttribute<i> attribute</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#resetFontFamily">resetFontFamily</a></b>(FontFamily<i> which</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#resetFontSize">resetFontSize</a></b>(FontSize<i> type</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setAttribute">setAttribute</a></b>(WebAttribute<i> attribute</i>, bool<i> on</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setCSSMediaType">setCSSMediaType</a></b>(const QString &<i> type</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setDefaultTextEncoding">setDefaultTextEncoding</a></b>(const QString &<i> encoding</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setFontFamily">setFontFamily</a></b>(FontFamily<i> which</i>, const QString &<i> family</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setFontSize">setFontSize</a></b>(FontSize<i> type</i>, int<i> size</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setLocalStoragePath">setLocalStoragePath</a></b>(const QString &<i> path</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setThirdPartyCookiePolicy">setThirdPartyCookiePolicy</a></b>(ThirdPartyCookiePolicy<i> policy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setUserStyleSheetUrl">setUserStyleSheetUrl</a></b>(const QUrl &<i> location</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#testAttribute">testAttribute</a></b>(WebAttribute<i> attribute</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSettings::ThirdPartyCookiePolicy </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#thirdPartyCookiePolicy">thirdPartyCookiePolicy</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#userStyleSheetUrl">userStyleSheetUrl</a></b>() const</td></tr>
</table>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#clearIconDatabase">clearIconDatabase</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#clearMemoryCaches">clearMemoryCaches</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#enablePersistentStorage">enablePersistentStorage</a></b>(const QString &<i> path</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSettings * </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#globalSettings">globalSettings</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#iconDatabasePath">iconDatabasePath</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#iconForUrl">iconForUrl</a></b>(const QUrl &<i> url</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#maximumPagesInCache">maximumPagesInCache</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#offlineStorageDefaultQuota">offlineStorageDefaultQuota</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#offlineStoragePath">offlineStoragePath</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#offlineWebApplicationCachePath">offlineWebApplicationCachePath</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qint64 </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#offlineWebApplicationCacheQuota">offlineWebApplicationCacheQuota</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setIconDatabasePath">setIconDatabasePath</a></b>(const QString &<i> path</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setMaximumPagesInCache">setMaximumPagesInCache</a></b>(int<i> pages</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setObjectCacheCapacities">setObjectCacheCapacities</a></b>(int<i> cacheMinDeadCapacity</i>, int<i> cacheMaxDead</i>, int<i> totalCapacity</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setOfflineStorageDefaultQuota">setOfflineStorageDefaultQuota</a></b>(qint64<i> maximumSize</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setOfflineStoragePath">setOfflineStoragePath</a></b>(const QString &<i> path</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setOfflineWebApplicationCachePath">setOfflineWebApplicationCachePath</a></b>(const QString &<i> path</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setOfflineWebApplicationCacheQuota">setOfflineWebApplicationCacheQuota</a></b>(qint64<i> maximumSize</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#setWebGraphic">setWebGraphic</a></b>(WebGraphic<i> type</i>, const QPixmap &<i> graphic</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPixmap </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#webGraphic">webGraphic</a></b>(WebGraphic<i> type</i>)</td></tr>
</table>
<a name="details"></a>
<!-- $$$QWebSettings-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebSettings class provides an object to store the settings used by <a href="qwebpage.html">QWebPage</a> and <a href="qwebframe.html">QWebFrame</a>.</p>
<p>Each <a href="qwebpage.html">QWebPage</a> object has its own QWebSettings object, which configures the settings for that page. If a setting is not configured, then it is looked up in the global settings object, which can be accessed using <a href="qwebsettings.html#globalSettings">globalSettings</a>().</p>
<p>QWebSettings allows configuration of browser properties, such as font sizes and families, the location of a custom style sheet, and generic attributes like JavaScript and plugins. Individual attributes are set using the <a href="qwebsettings.html#setAttribute">setAttribute</a>() function. The <a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a> enum further describes each attribute.</p>
<p>QWebSettings also configures global properties such as the web page memory cache, icon database, local database storage and offline applications storage.</p>
<a name="enabling-plugins"></a>
<h3>Enabling Plugins</h3>
<p>Support for browser plugins can enabled by setting the <a href="qwebsettings.html#WebAttribute-enum">PluginsEnabled</a> attribute. For many applications, this attribute is enabled for all pages by setting it on the <a href="qwebsettings.html#globalSettings">global settings object</a>. Qt WebKit will always ignore this setting when processing Qt plugins. The decision to allow a Qt plugin is made by the client in its reimplementation of <a href="qwebpage.html#createPlugin">QWebPage::createPlugin</a>().</p>
<a name="web-application-support"></a>
<h3>Web Application Support</h3>
<p>WebKit provides support for features specified in HTML 5 that improve the performance and capabilities of Web applications. These include client-side (offline) storage and the use of a Web application cache.</p>
<p>Client-side (offline) storage is an improvement over the use of cookies to store persistent data in Web applications. Applications can configure and enable the use of an offline storage database by calling the <a href="qwebsettings.html#setOfflineStoragePath">setOfflineStoragePath</a>() with an appropriate file path, and can limit the quota for each application by calling <a href="qwebsettings.html#setOfflineStorageDefaultQuota">setOfflineStorageDefaultQuota</a>().</p>
</div>
<p><b>See also </b><a href="qwebpage.html#settings">QWebPage::settings</a>(), <a href="qwebview.html#settings">QWebView::settings</a>(), and Web Browser.</p>
<!-- @@@QWebSettings -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$FontFamily$$$StandardFont$$$FixedFont$$$SerifFont$$$SansSerifFont$$$CursiveFont$$$FantasyFont -->
<h3 class="fn"><a name="FontFamily-enum"></a>enum QWebSettings::<span class="name">FontFamily</span></h3>
<p>This enum describes the generic font families defined by CSS 2. For more information see the <a href="http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-families">CSS standard</a>.</p>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>QWebSettings::StandardFont</tt></td><td class="topAlign"><tt>0</tt></td></tr>
<tr><td class="topAlign"><tt>QWebSettings::FixedFont</tt></td><td class="topAlign"><tt>1</tt></td></tr>
<tr><td class="topAlign"><tt>QWebSettings::SerifFont</tt></td><td class="topAlign"><tt>2</tt></td></tr>
<tr><td class="topAlign"><tt>QWebSettings::SansSerifFont</tt></td><td class="topAlign"><tt>3</tt></td></tr>
<tr><td class="topAlign"><tt>QWebSettings::CursiveFont</tt></td><td class="topAlign"><tt>4</tt></td></tr>
<tr><td class="topAlign"><tt>QWebSettings::FantasyFont</tt></td><td class="topAlign"><tt>5</tt></td></tr>
</table>
<!-- @@@FontFamily -->
<!-- $$$FontSize$$$MinimumFontSize$$$MinimumLogicalFontSize$$$DefaultFontSize$$$DefaultFixedFontSize -->
<h3 class="fn"><a name="FontSize-enum"></a>enum QWebSettings::<span class="name">FontSize</span></h3>
<p>This enum describes the font sizes configurable through <a href="qwebsettings.html">QWebSettings</a>.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QWebSettings::MinimumFontSize</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The hard minimum font size.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::MinimumLogicalFontSize</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The minimum logical font size that is applied when zooming out with <a href="qwebframe.html#setTextSizeMultiplier">QWebFrame::setTextSizeMultiplier</a>().</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::DefaultFontSize</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The default font size for regular text.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::DefaultFixedFontSize</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The default font size for fixed-pitch text.</td></tr>
</table>
<!-- @@@FontSize -->
<!-- $$$ThirdPartyCookiePolicy$$$AlwaysAllowThirdPartyCookies$$$AlwaysBlockThirdPartyCookies$$$AllowThirdPartyWithExistingCookies -->
<h3 class="fn"><a name="ThirdPartyCookiePolicy-enum"></a>enum QWebSettings::<span class="name">ThirdPartyCookiePolicy</span></h3>
<p>This enum describes the policies configurable for accepting and sending third-party cookies. These are cookies that are set or retrieved when fetching a resource that is stored for a different registry-controlled domain from the page containing it.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QWebSettings::AlwaysAllowThirdPartyCookies</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Allow third-party resources to set and retrieve cookies.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::AlwaysBlockThirdPartyCookies</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Never allow third-party resources to set and retrieve cookies.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::AllowThirdPartyWithExistingCookies</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">If the cookie jar already contains cookies from a third-party, allow it to set and retrieve new and existing cookies.</td></tr>
</table>
<p>This enum was introduced or modified in QtWebKit 2,3.</p>
<!-- @@@ThirdPartyCookiePolicy -->
<!-- $$$WebAttribute$$$AutoLoadImages$$$JavascriptEnabled$$$JavaEnabled$$$PluginsEnabled$$$PrivateBrowsingEnabled$$$JavascriptCanOpenWindows$$$JavascriptCanAccessClipboard$$$DeveloperExtrasEnabled$$$LinksIncludedInFocusChain$$$ZoomTextOnly$$$PrintElementBackgrounds$$$OfflineStorageDatabaseEnabled$$$OfflineWebApplicationCacheEnabled$$$LocalStorageEnabled$$$LocalStorageDatabaseEnabled$$$LocalContentCanAccessRemoteUrls$$$DnsPrefetchEnabled$$$XSSAuditingEnabled$$$AcceleratedCompositingEnabled$$$SpatialNavigationEnabled$$$LocalContentCanAccessFileUrls$$$TiledBackingStoreEnabled$$$FrameFlatteningEnabled$$$SiteSpecificQuirksEnabled$$$JavascriptCanCloseWindows$$$WebGLEnabled$$$CSSRegionsEnabled$$$HyperlinkAuditingEnabled$$$CSSGridLayoutEnabled$$$ScrollAnimatorEnabled$$$CaretBrowsingEnabled$$$NotificationsEnabled -->
<h3 class="fn"><a name="WebAttribute-enum"></a>enum QWebSettings::<span class="name">WebAttribute</span></h3>
<p>This enum describes various attributes that are configurable through <a href="qwebsettings.html">QWebSettings</a>.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QWebSettings::AutoLoadImages</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Specifies whether images are automatically loaded in web pages. This is enabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::DnsPrefetchEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">Specifies whether Qt WebKit will try to pre-fetch DNS entries to speed up browsing. This only works as a global attribute. Only for Qt 4.6 and later. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::JavascriptEnabled</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Enables or disables the running of JavaScript programs. This is enabled by default</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::JavaEnabled</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Enables or disables Java applets. Currently Java applets are not supported.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::PluginsEnabled</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Enables or disables plugins in Web pages (e.g. using NPAPI). Qt plugins with a mimetype such as "application/x-qt-plugin" are not affected by this setting. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::PrivateBrowsingEnabled</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">Private browsing prevents WebKit from recording visited pages in the history and storing web page icons. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::JavascriptCanOpenWindows</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">Specifies whether JavaScript programs can open new windows. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::JavascriptCanCloseWindows</tt></td><td class="topAlign">?</td><td class="topAlign">Specifies whether JavaScript programs can close windows. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::JavascriptCanAccessClipboard</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">Specifies whether JavaScript programs can read or write to the clipboard. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::DeveloperExtrasEnabled</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">Enables extra tools for Web developers. Currently this enables the "Inspect" element in the context menu as well as the use of <a href="qwebinspector.html">QWebInspector</a> which controls the web inspector for web site debugging. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::SpatialNavigationEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">Enables or disables the Spatial Navigation feature, which consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element he might be trying to reach towards the right and which element he probably wants. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::LinksIncludedInFocusChain</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">Specifies whether hyperlinks should be included in the keyboard focus chain. This is enabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::ZoomTextOnly</tt></td><td class="topAlign"><tt>9</tt></td><td class="topAlign">Specifies whether the zoom factor on a frame applies only to the text or to all content. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::PrintElementBackgrounds</tt></td><td class="topAlign"><tt>10</tt></td><td class="topAlign">Specifies whether the background color and images are also drawn when the page is printed. This is enabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::OfflineStorageDatabaseEnabled</tt></td><td class="topAlign"><tt>11</tt></td><td class="topAlign">Specifies whether support for the HTML 5 offline storage feature is enabled or not. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::OfflineWebApplicationCacheEnabled</tt></td><td class="topAlign"><tt>12</tt></td><td class="topAlign">Specifies whether support for the HTML 5 web application cache feature is enabled or not. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::LocalStorageEnabled</tt></td><td class="topAlign"><tt>13</tt></td><td class="topAlign">Specifies whether support for the HTML 5 local storage feature is enabled or not. This is disabled by default. (This value was introduced in 4.6.)</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::LocalStorageDatabaseEnabled</tt></td><td class="topAlign"><tt>LocalStorageEnabled</tt></td><td class="topAlign"><i>This enum value is deprecated.</i> Use QWebSettings::LocalStorageEnabled instead.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::LocalContentCanAccessRemoteUrls</tt></td><td class="topAlign">?</td><td class="topAlign">Specifies whether locally loaded documents are allowed to access remote urls. This is disabled by default. For more information about security origins and local vs. remote content see <a href="qwebsecurityorigin.html">QWebSecurityOrigin</a>. (This value was introduced in 4.6.)</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::LocalContentCanAccessFileUrls</tt></td><td class="topAlign">?</td><td class="topAlign">Specifies whether locally loaded documents are allowed to access other local urls. This is enabled by default. For more information about security origins and local vs. remote content see <a href="qwebsecurityorigin.html">QWebSecurityOrigin</a>.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::XSSAuditingEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">Specifies whether load requests should be monitored for cross-site scripting attempts. Suspicious scripts will be blocked and reported in the inspector's JavaScript console. Enabling this feature might have an impact on performance and it is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::AcceleratedCompositingEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">This feature, when used in conjunction with <a href="qgraphicswebview.html">QGraphicsWebView</a>, accelerates animations of web content. CSS animations of the transform and opacity properties will be rendered by composing the cached content of the animated elements. This is enabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::TiledBackingStoreEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">This setting enables the tiled backing store feature for a <a href="qgraphicswebview.html">QGraphicsWebView</a>. With the tiled backing store enabled, the web page contents in and around the current visible area is speculatively cached to bitmap tiles. The tiles are automatically kept in sync with the web page as it changes. Enabling tiling can significantly speed up painting heavy operations like scrolling. Enabling the feature increases memory consumption. It does not work well with contents using CSS fixed positioning (see also <a href="qgraphicswebview.html#resizesToContents-prop">resizesToContents</a> property). <a href="qgraphicswebview.html#tiledBackingStoreFrozen-prop">tiledBackingStoreFrozen</a> property allows application to temporarily freeze the contents of the backing store. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::FrameFlatteningEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">With this setting each subframe is expanded to its contents. On touch devices, it is desired to not have any scrollable sub parts of the page as it results in a confusing user experience, with scrolling sometimes scrolling sub parts and at other times scrolling the page itself. For this reason iframes and framesets are barely usable on touch devices. This will flatten all the frames to become one scrollable page. This is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::SiteSpecificQuirksEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">This setting enables WebKit's workaround for broken sites. It is enabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::ScrollAnimatorEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">This setting enables animated scrolling. It is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::CaretBrowsingEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">This setting enables caret browsing. It is disabled by default.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::NotificationsEnabled</tt></td><td class="topAlign">?</td><td class="topAlign">Specifies whether support for the HTML 5 web notifications is enabled or not. This is enabled by default.</td></tr>
</table>
<!-- @@@WebAttribute -->
<!-- $$$WebGraphic$$$MissingImageGraphic$$$MissingPluginGraphic$$$DefaultFrameIconGraphic$$$TextAreaSizeGripCornerGraphic$$$DeleteButtonGraphic$$$InputSpeechButtonGraphic$$$SearchCancelButtonGraphic$$$SearchCancelButtonPressedGraphic -->
<h3 class="fn"><a name="WebGraphic-enum"></a>enum QWebSettings::<span class="name">WebGraphic</span></h3>
<p>This enums describes the standard graphical elements used in webpages.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QWebSettings::MissingImageGraphic</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The replacement graphic shown when an image could not be loaded.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::MissingPluginGraphic</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The replacement graphic shown when a plugin could not be loaded.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::DefaultFrameIconGraphic</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The default icon for <a href="qwebframe.html#icon-prop">QWebFrame::icon</a>().</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::TextAreaSizeGripCornerGraphic</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The graphic shown for the size grip of text areas.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::DeleteButtonGraphic</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The graphic shown for the WebKit-Editing-Delete-Button in Deletion UI.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::InputSpeechButtonGraphic</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">The graphic shown in input fields that support speech recognition.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::SearchCancelButtonGraphic</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">The graphic shown for clearing the text in a search field.</td></tr>
<tr><td class="topAlign"><tt>QWebSettings::SearchCancelButtonPressedGraphic</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">The graphic shown when SearchCancelButtonGraphic is pressed.</td></tr>
</table>
<!-- @@@WebGraphic -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$clearIconDatabase[overload1]$$$clearIconDatabase -->
<h3 class="fn"><a name="clearIconDatabase"></a><span class="type">void</span> QWebSettings::<span class="name">clearIconDatabase</span>()<tt> [static]</tt></h3>
<p>Clears the icon database.</p>
<!-- @@@clearIconDatabase -->
<!-- $$$clearMemoryCaches[overload1]$$$clearMemoryCaches -->
<h3 class="fn"><a name="clearMemoryCaches"></a><span class="type">void</span> QWebSettings::<span class="name">clearMemoryCaches</span>()<tt> [static]</tt></h3>
<p>Frees up as much memory as possible by calling the JavaScript garbage collector and cleaning all memory caches such as page, object and font cache.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@clearMemoryCaches -->
<!-- $$$cssMediaType[overload1]$$$cssMediaType -->
<h3 class="fn"><a name="cssMediaType"></a><span class="type">QString</span> QWebSettings::<span class="name">cssMediaType</span>() const</h3>
<p>Returns the current CSS media type.</p>
<p><b>Note: </b>It will only return the value set through setCSSMediaType and not the one used internally.</p><!-- @@@cssMediaType -->
<!-- $$$defaultTextEncoding[overload1]$$$defaultTextEncoding -->
<h3 class="fn"><a name="defaultTextEncoding"></a><span class="type">QString</span> QWebSettings::<span class="name">defaultTextEncoding</span>() const</h3>
<p>Returns the default text encoding.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#setDefaultTextEncoding">setDefaultTextEncoding</a>().</p>
<!-- @@@defaultTextEncoding -->
<!-- $$$enablePersistentStorage[overload1]$$$enablePersistentStorageconstQString& -->
<h3 class="fn"><a name="enablePersistentStorage"></a><span class="type">void</span> QWebSettings::<span class="name">enablePersistentStorage</span>(const <span class="type">QString</span> &<i> path</i> = QString())<tt> [static]</tt></h3>
<p>Enables WebKit data persistence and sets the path to <i>path</i>. If <i>path</i> is empty, the user-specific data location specified by DataLocation will be used instead.</p>
<p>This method will simultaneously set and enable the <a href="qwebsettings.html#iconDatabasePath">iconDatabasePath</a>(), <a href="qwebsettings.html#localStoragePath">localStoragePath</a>(), <a href="qwebsettings.html#offlineStoragePath">offlineStoragePath</a>() and <a href="qwebsettings.html#offlineWebApplicationCachePath">offlineWebApplicationCachePath</a>().</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#localStoragePath">localStoragePath</a>().</p>
<!-- @@@enablePersistentStorage -->
<!-- $$$fontFamily[overload1]$$$fontFamilyFontFamily -->
<h3 class="fn"><a name="fontFamily"></a><span class="type">QString</span> QWebSettings::<span class="name">fontFamily</span>(<span class="type"><a href="qwebsettings.html#FontFamily-enum">FontFamily</a></span><i> which</i>) const</h3>
<p>Returns the actual font family for the specified generic font family, <i>which</i>.</p>
<p><b>See also </b><a href="qwebsettings.html#setFontFamily">setFontFamily</a>().</p>
<!-- @@@fontFamily -->
<!-- $$$fontSize[overload1]$$$fontSizeFontSize -->
<h3 class="fn"><a name="fontSize"></a><span class="type">int</span> QWebSettings::<span class="name">fontSize</span>(<span class="type"><a href="qwebsettings.html#FontSize-enum">FontSize</a></span><i> type</i>) const</h3>
<p>Returns the default font size for <i>type</i>.</p>
<p><b>See also </b><a href="qwebsettings.html#setFontSize">setFontSize</a>().</p>
<!-- @@@fontSize -->
<!-- $$$globalSettings[overload1]$$$globalSettings -->
<h3 class="fn"><a name="globalSettings"></a><span class="type">QWebSettings</span> * QWebSettings::<span class="name">globalSettings</span>()<tt> [static]</tt></h3>
<p>Returns the global settings object.</p>
<p>Any setting changed on the default object is automatically applied to all <a href="qwebpage.html">QWebPage</a> instances where the particular setting is not overriden already.</p>
<!-- @@@globalSettings -->
<!-- $$$iconDatabasePath[overload1]$$$iconDatabasePath -->
<h3 class="fn"><a name="iconDatabasePath"></a><span class="type">QString</span> QWebSettings::<span class="name">iconDatabasePath</span>()<tt> [static]</tt></h3>
<p>Returns the path of the icon database or an empty string if the icon database is disabled.</p>
<p><b>See also </b><a href="qwebsettings.html#setIconDatabasePath">setIconDatabasePath</a>() and <a href="qwebsettings.html#clearIconDatabase">clearIconDatabase</a>().</p>
<!-- @@@iconDatabasePath -->
<!-- $$$iconForUrl[overload1]$$$iconForUrlconstQUrl& -->
<h3 class="fn"><a name="iconForUrl"></a><span class="type">QIcon</span> QWebSettings::<span class="name">iconForUrl</span>(const <span class="type">QUrl</span> &<i> url</i>)<tt> [static]</tt></h3>
<p>Returns the web site's icon for <i>url</i>.</p>
<p>If the web site does not specify an icon <b>OR</b> if the icon is not in the database, a null QIcon is returned.</p>
<p><b>Note: </b>The returned icon's size is arbitrary.</p><p><b>See also </b><a href="qwebsettings.html#setIconDatabasePath">setIconDatabasePath</a>().</p>
<!-- @@@iconForUrl -->
<!-- $$$localStoragePath[overload1]$$$localStoragePath -->
<h3 class="fn"><a name="localStoragePath"></a><span class="type">QString</span> QWebSettings::<span class="name">localStoragePath</span>() const</h3>
<p>Returns the path for HTML5 local storage.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#setLocalStoragePath">setLocalStoragePath</a>().</p>
<!-- @@@localStoragePath -->
<!-- $$$maximumPagesInCache[overload1]$$$maximumPagesInCache -->
<h3 class="fn"><a name="maximumPagesInCache"></a><span class="type">int</span> QWebSettings::<span class="name">maximumPagesInCache</span>()<tt> [static]</tt></h3>
<p>Returns the maximum number of web pages that are kept in the memory cache.</p>
<p><b>See also </b><a href="qwebsettings.html#setMaximumPagesInCache">setMaximumPagesInCache</a>().</p>
<!-- @@@maximumPagesInCache -->
<!-- $$$offlineStorageDefaultQuota[overload1]$$$offlineStorageDefaultQuota -->
<h3 class="fn"><a name="offlineStorageDefaultQuota"></a><span class="type">qint64</span> QWebSettings::<span class="name">offlineStorageDefaultQuota</span>()<tt> [static]</tt></h3>
<p>Returns the value of the default quota for new offline storage databases.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebsettings.html#setOfflineStorageDefaultQuota">setOfflineStorageDefaultQuota</a>().</p>
<!-- @@@offlineStorageDefaultQuota -->
<!-- $$$offlineStoragePath[overload1]$$$offlineStoragePath -->
<h3 class="fn"><a name="offlineStoragePath"></a><span class="type">QString</span> QWebSettings::<span class="name">offlineStoragePath</span>()<tt> [static]</tt></h3>
<p>Returns the path of the HTML5 client-side database storage or an empty string if the feature is disabled.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebsettings.html#setOfflineStoragePath">setOfflineStoragePath</a>().</p>
<!-- @@@offlineStoragePath -->
<!-- $$$offlineWebApplicationCachePath[overload1]$$$offlineWebApplicationCachePath -->
<h3 class="fn"><a name="offlineWebApplicationCachePath"></a><span class="type">QString</span> QWebSettings::<span class="name">offlineWebApplicationCachePath</span>()<tt> [static]</tt></h3>
<p>Returns the path of the HTML5 offline web application cache storage or an empty string if the feature is disabled.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#setOfflineWebApplicationCachePath">setOfflineWebApplicationCachePath</a>().</p>
<!-- @@@offlineWebApplicationCachePath -->
<!-- $$$offlineWebApplicationCacheQuota[overload1]$$$offlineWebApplicationCacheQuota -->
<h3 class="fn"><a name="offlineWebApplicationCacheQuota"></a><span class="type">qint64</span> QWebSettings::<span class="name">offlineWebApplicationCacheQuota</span>()<tt> [static]</tt></h3>
<p>Returns the value of the quota for the offline web application cache.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#setOfflineWebApplicationCacheQuota">setOfflineWebApplicationCacheQuota</a>().</p>
<!-- @@@offlineWebApplicationCacheQuota -->
<!-- $$$resetAttribute[overload1]$$$resetAttributeWebAttribute -->
<h3 class="fn"><a name="resetAttribute"></a><span class="type">void</span> QWebSettings::<span class="name">resetAttribute</span>(<span class="type"><a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a></span><i> attribute</i>)</h3>
<p>Resets the setting of <i>attribute</i> to the value specified in the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>
<p>This function has no effect on the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>
<p><b>See also </b><a href="qwebsettings.html#globalSettings">globalSettings</a>().</p>
<!-- @@@resetAttribute -->
<!-- $$$resetFontFamily[overload1]$$$resetFontFamilyFontFamily -->
<h3 class="fn"><a name="resetFontFamily"></a><span class="type">void</span> QWebSettings::<span class="name">resetFontFamily</span>(<span class="type"><a href="qwebsettings.html#FontFamily-enum">FontFamily</a></span><i> which</i>)</h3>
<p>Resets the actual font family specified by <i>which</i> to the one set in the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>
<p>This function has no effect on the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>
<!-- @@@resetFontFamily -->
<!-- $$$resetFontSize[overload1]$$$resetFontSizeFontSize -->
<h3 class="fn"><a name="resetFontSize"></a><span class="type">void</span> QWebSettings::<span class="name">resetFontSize</span>(<span class="type"><a href="qwebsettings.html#FontSize-enum">FontSize</a></span><i> type</i>)</h3>
<p>Resets the font size for <i>type</i> to the size specified in the global settings object.</p>
<p>This function has no effect on the global <a href="qwebsettings.html">QWebSettings</a> instance.</p>
<!-- @@@resetFontSize -->
<!-- $$$setAttribute[overload1]$$$setAttributeWebAttributebool -->
<h3 class="fn"><a name="setAttribute"></a><span class="type">void</span> QWebSettings::<span class="name">setAttribute</span>(<span class="type"><a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a></span><i> attribute</i>, <span class="type">bool</span><i> on</i>)</h3>
<p>Enables or disables the specified <i>attribute</i> feature depending on the value of <i>on</i>.</p>
<!-- @@@setAttribute -->
<!-- $$$setCSSMediaType[overload1]$$$setCSSMediaTypeconstQString& -->
<h3 class="fn"><a name="setCSSMediaType"></a><span class="type">void</span> QWebSettings::<span class="name">setCSSMediaType</span>(const <span class="type">QString</span> &<i> type</i>)</h3>
<p>Sets the CSS media type to <i>type</i>.</p>
<p>Setting this will override the normal value of the CSS media property.</p>
<p><b>Note: </b>Setting the value to null QString will restore the default value.</p><!-- @@@setCSSMediaType -->
<!-- $$$setDefaultTextEncoding[overload1]$$$setDefaultTextEncodingconstQString& -->
<h3 class="fn"><a name="setDefaultTextEncoding"></a><span class="type">void</span> QWebSettings::<span class="name">setDefaultTextEncoding</span>(const <span class="type">QString</span> &<i> encoding</i>)</h3>
<p>Specifies the default text encoding system.</p>
<p>The <i>encoding</i>, must be a string describing an encoding such as "utf-8", "iso-8859-1", etc. If left empty a default value will be used. For a more extensive list of encoding names see QTextCodec</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#defaultTextEncoding">defaultTextEncoding</a>().</p>
<!-- @@@setDefaultTextEncoding -->
<!-- $$$setFontFamily[overload1]$$$setFontFamilyFontFamilyconstQString& -->
<h3 class="fn"><a name="setFontFamily"></a><span class="type">void</span> QWebSettings::<span class="name">setFontFamily</span>(<span class="type"><a href="qwebsettings.html#FontFamily-enum">FontFamily</a></span><i> which</i>, const <span class="type">QString</span> &<i> family</i>)</h3>
<p>Sets the actual font family to <i>family</i> for the specified generic family, <i>which</i>.</p>
<p><b>See also </b><a href="qwebsettings.html#fontFamily">fontFamily</a>().</p>
<!-- @@@setFontFamily -->
<!-- $$$setFontSize[overload1]$$$setFontSizeFontSizeint -->
<h3 class="fn"><a name="setFontSize"></a><span class="type">void</span> QWebSettings::<span class="name">setFontSize</span>(<span class="type"><a href="qwebsettings.html#FontSize-enum">FontSize</a></span><i> type</i>, <span class="type">int</span><i> size</i>)</h3>
<p>Sets the font size for <i>type</i> to <i>size</i>.</p>
<p><b>See also </b><a href="qwebsettings.html#fontSize">fontSize</a>().</p>
<!-- @@@setFontSize -->
<!-- $$$setIconDatabasePath[overload1]$$$setIconDatabasePathconstQString& -->
<h3 class="fn"><a name="setIconDatabasePath"></a><span class="type">void</span> QWebSettings::<span class="name">setIconDatabasePath</span>(const <span class="type">QString</span> &<i> path</i>)<tt> [static]</tt></h3>
<p>Sets the path of the icon database to <i>path</i>. The icon database is used to store "favicons" associated with web sites.</p>
<p><i>path</i> must point to an existing directory.</p>
<p>Setting an empty path disables the icon database.</p>
<p><b>See also </b><a href="qwebsettings.html#iconDatabasePath">iconDatabasePath</a>() and <a href="qwebsettings.html#clearIconDatabase">clearIconDatabase</a>().</p>
<!-- @@@setIconDatabasePath -->
<!-- $$$setLocalStoragePath[overload1]$$$setLocalStoragePathconstQString& -->
<h3 class="fn"><a name="setLocalStoragePath"></a><span class="type">void</span> QWebSettings::<span class="name">setLocalStoragePath</span>(const <span class="type">QString</span> &<i> path</i>)</h3>
<p>Sets the path for HTML5 local storage to <i>path</i>.</p>
<p>For more information on HTML5 local storage see the <a href="http://www.w3.org/TR/webstorage/#the-localstorage-attribute">Web Storage standard</a>.</p>
<p>Support for local storage can enabled by setting the <a href="qwebsettings.html#WebAttribute-enum">LocalStorageEnabled</a> attribute.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#localStoragePath">localStoragePath</a>().</p>
<!-- @@@setLocalStoragePath -->
<!-- $$$setMaximumPagesInCache[overload1]$$$setMaximumPagesInCacheint -->
<h3 class="fn"><a name="setMaximumPagesInCache"></a><span class="type">void</span> QWebSettings::<span class="name">setMaximumPagesInCache</span>(<span class="type">int</span><i> pages</i>)<tt> [static]</tt></h3>
<p>Sets the maximum number of pages to hold in the memory page cache to <i>pages</i>.</p>
<p>The Page Cache allows for a nicer user experience when navigating forth or back to pages in the forward/back history, by pausing and resuming up to <i>pages</i>.</p>
<p>For more information about the feature, please refer to:</p>
<p>http://webkit.org/blog/427/webkit-page-cache-i-the-basics/</p>
<p><b>See also </b><a href="qwebsettings.html#maximumPagesInCache">maximumPagesInCache</a>().</p>
<!-- @@@setMaximumPagesInCache -->
<!-- $$$setObjectCacheCapacities[overload1]$$$setObjectCacheCapacitiesintintint -->
<h3 class="fn"><a name="setObjectCacheCapacities"></a><span class="type">void</span> QWebSettings::<span class="name">setObjectCacheCapacities</span>(<span class="type">int</span><i> cacheMinDeadCapacity</i>, <span class="type">int</span><i> cacheMaxDead</i>, <span class="type">int</span><i> totalCapacity</i>)<tt> [static]</tt></h3>
<p>Specifies the capacities for the memory cache for dead objects such as stylesheets or scripts.</p>
<p>The <i>cacheMinDeadCapacity</i> specifies the <i>minimum</i> number of bytes that dead objects should consume when the cache is under pressure.</p>
<p><i>cacheMaxDead</i> is the <i>maximum</i> number of bytes that dead objects should consume when the cache is <b>not</b> under pressure.</p>
<p><i>totalCapacity</i> specifies the <i>maximum</i> number of bytes that the cache should consume <b>overall</b>.</p>
<p>The cache is enabled by default. Calling setObjectCacheCapacities(0, 0, 0) will disable the cache. Calling it with one non-zero enables it again.</p>
<!-- @@@setObjectCacheCapacities -->
<!-- $$$setOfflineStorageDefaultQuota[overload1]$$$setOfflineStorageDefaultQuotaqint64 -->
<h3 class="fn"><a name="setOfflineStorageDefaultQuota"></a><span class="type">void</span> QWebSettings::<span class="name">setOfflineStorageDefaultQuota</span>(<span class="type">qint64</span><i> maximumSize</i>)<tt> [static]</tt></h3>
<p>Sets the value of the default quota for new offline storage databases to <i>maximumSize</i>.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebsettings.html#offlineStorageDefaultQuota">offlineStorageDefaultQuota</a>().</p>
<!-- @@@setOfflineStorageDefaultQuota -->
<!-- $$$setOfflineStoragePath[overload1]$$$setOfflineStoragePathconstQString& -->
<h3 class="fn"><a name="setOfflineStoragePath"></a><span class="type">void</span> QWebSettings::<span class="name">setOfflineStoragePath</span>(const <span class="type">QString</span> &<i> path</i>)<tt> [static]</tt></h3>
<p>Sets <i>path</i> as the save location for HTML5 client-side database storage data.</p>
<p><i>path</i> must point to an existing directory.</p>
<p>Setting an empty path disables the feature.</p>
<p>Support for client-side databases can enabled by setting the <a href="qwebsettings.html#WebAttribute-enum">OfflineStorageDatabaseEnabled</a> attribute.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebsettings.html#offlineStoragePath">offlineStoragePath</a>().</p>
<!-- @@@setOfflineStoragePath -->
<!-- $$$setOfflineWebApplicationCachePath[overload1]$$$setOfflineWebApplicationCachePathconstQString& -->
<h3 class="fn"><a name="setOfflineWebApplicationCachePath"></a><span class="type">void</span> QWebSettings::<span class="name">setOfflineWebApplicationCachePath</span>(const <span class="type">QString</span> &<i> path</i>)<tt> [static]</tt></h3>
<p>Sets the path for HTML5 offline web application cache storage to <i>path</i>.</p>
<p>An application cache acts like an HTTP cache in some sense. For documents that use the application cache via JavaScript, the loader engine will first ask the application cache for the contents, before hitting the network.</p>
<p>The feature is described in details at: http://dev.w3.org/html5/spec/Overview.html#appcache</p>
<p><i>path</i> must point to an existing directory.</p>
<p>Setting an empty path disables the feature.</p>
<p>Support for offline web application cache storage can enabled by setting the <a href="qwebsettings.html#WebAttribute-enum">OfflineWebApplicationCacheEnabled</a> attribute.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#offlineWebApplicationCachePath">offlineWebApplicationCachePath</a>().</p>
<!-- @@@setOfflineWebApplicationCachePath -->
<!-- $$$setOfflineWebApplicationCacheQuota[overload1]$$$setOfflineWebApplicationCacheQuotaqint64 -->
<h3 class="fn"><a name="setOfflineWebApplicationCacheQuota"></a><span class="type">void</span> QWebSettings::<span class="name">setOfflineWebApplicationCacheQuota</span>(<span class="type">qint64</span><i> maximumSize</i>)<tt> [static]</tt></h3>
<p>Sets the value of the quota for the offline web application cache to <i>maximumSize</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebsettings.html#offlineWebApplicationCacheQuota">offlineWebApplicationCacheQuota</a>().</p>
<!-- @@@setOfflineWebApplicationCacheQuota -->
<!-- $$$setThirdPartyCookiePolicy[overload1]$$$setThirdPartyCookiePolicyThirdPartyCookiePolicy -->
<h3 class="fn"><a name="setThirdPartyCookiePolicy"></a><span class="type">void</span> QWebSettings::<span class="name">setThirdPartyCookiePolicy</span>(<span class="type"><a href="qwebsettings.html#ThirdPartyCookiePolicy-enum">ThirdPartyCookiePolicy</a></span><i> policy</i>)</h3>
<p>Sets the third-party cookie policy, the default is <a href="qwebsettings.html#ThirdPartyCookiePolicy-enum">AlwaysAllowThirdPartyCookies</a>.</p>
<p><b>See also </b><a href="qwebsettings.html#thirdPartyCookiePolicy">thirdPartyCookiePolicy</a>().</p>
<!-- @@@setThirdPartyCookiePolicy -->
<!-- $$$setUserStyleSheetUrl[overload1]$$$setUserStyleSheetUrlconstQUrl& -->
<h3 class="fn"><a name="setUserStyleSheetUrl"></a><span class="type">void</span> QWebSettings::<span class="name">setUserStyleSheetUrl</span>(const <span class="type">QUrl</span> &<i> location</i>)</h3>
<p>Specifies the location of a user stylesheet to load with every web page.</p>
<p>The <i>location</i> must be either a path on the local filesystem, or a data URL with UTF-8 and Base64 encoded data, such as:</p>
<p>"data:text/css;charset=utf-8;base64,cCB7IGJhY2tncm91bmQtY29sb3I6IHJlZCB9Ow=="</p>
<p><b>Note: </b>If the base64 data is not valid, the style will not be applied.</p><p><b>See also </b><a href="qwebsettings.html#userStyleSheetUrl">userStyleSheetUrl</a>().</p>
<!-- @@@setUserStyleSheetUrl -->
<!-- $$$setWebGraphic[overload1]$$$setWebGraphicWebGraphicconstQPixmap& -->
<h3 class="fn"><a name="setWebGraphic"></a><span class="type">void</span> QWebSettings::<span class="name">setWebGraphic</span>(<span class="type"><a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a></span><i> type</i>, const <span class="type">QPixmap</span> &<i> graphic</i>)<tt> [static]</tt></h3>
<p>Sets <i>graphic</i> to be drawn when Qt WebKit needs to draw an image of the given <i>type</i>.</p>
<p>For example, when an image cannot be loaded, the pixmap specified by <a href="qwebsettings.html#WebGraphic-enum">MissingImageGraphic</a> is drawn instead.</p>
<p><b>See also </b><a href="qwebsettings.html#webGraphic">webGraphic</a>().</p>
<!-- @@@setWebGraphic -->
<!-- $$$testAttribute[overload1]$$$testAttributeWebAttribute -->
<h3 class="fn"><a name="testAttribute"></a><span class="type">bool</span> QWebSettings::<span class="name">testAttribute</span>(<span class="type"><a href="qwebsettings.html#WebAttribute-enum">WebAttribute</a></span><i> attribute</i>) const</h3>
<p>Returns true if <i>attribute</i> is enabled; otherwise returns false.</p>
<!-- @@@testAttribute -->
<!-- $$$thirdPartyCookiePolicy[overload1]$$$thirdPartyCookiePolicy -->
<h3 class="fn"><a name="thirdPartyCookiePolicy"></a><span class="type"><a href="qwebsettings.html#ThirdPartyCookiePolicy-enum">QWebSettings::ThirdPartyCookiePolicy</a></span> QWebSettings::<span class="name">thirdPartyCookiePolicy</span>() const</h3>
<p>Returns the third-party cookie policy.</p>
<p><b>See also </b><a href="qwebsettings.html#setThirdPartyCookiePolicy">setThirdPartyCookiePolicy</a>().</p>
<!-- @@@thirdPartyCookiePolicy -->
<!-- $$$userStyleSheetUrl[overload1]$$$userStyleSheetUrl -->
<h3 class="fn"><a name="userStyleSheetUrl"></a><span class="type">QUrl</span> QWebSettings::<span class="name">userStyleSheetUrl</span>() const</h3>
<p>Returns the location of the user stylesheet.</p>
<p><b>See also </b><a href="qwebsettings.html#setUserStyleSheetUrl">setUserStyleSheetUrl</a>().</p>
<!-- @@@userStyleSheetUrl -->
<!-- $$$webGraphic[overload1]$$$webGraphicWebGraphic -->
<h3 class="fn"><a name="webGraphic"></a><span class="type">QPixmap</span> QWebSettings::<span class="name">webGraphic</span>(<span class="type"><a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a></span><i> type</i>)<tt> [static]</tt></h3>
<p>Returns a previously set pixmap used to draw replacement graphics of the specified <i>type</i>.</p>
<p><b>See also </b><a href="qwebsettings.html#setWebGraphic">setWebGraphic</a>().</p>
<!-- @@@webGraphic -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|