/usr/share/qt5/doc/qtwebkit/qwebsettings.html is in qtwebkit5-doc-html 5.212.0~alpha2-7ubuntu1.
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 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebsettings.cpp -->
<title>QWebSettings Class | Qt 5.212.0</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td >Qt 5.212.0</td><td >QWebSettings</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.212.0 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QWebSettings Class</h1>
<!-- $$$QWebSettings-brief -->
<p>The <a href="qwebsettings.html">QWebSettings</a> 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 -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QWebSettings></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += webkitwidgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.4</td></tr></table></div><ul>
<li><a href="qwebsettings-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><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, ..., HyperlinkAuditingEnabled }</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></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><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></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><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"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qwebsettings.html#pluginSearchPaths">pluginSearchPaths</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#setPluginSearchPaths">setPluginSearchPaths</a></b>(const QStringList &<i>paths</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></div>
<a name="details"></a>
<!-- $$$QWebSettings-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qwebsettings.html">QWebSettings</a> 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 <a href="qwebsettings.html">QWebSettings</a> 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><a href="qwebsettings.html">QWebSettings</a> 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><a href="qwebsettings.html">QWebSettings</a> 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 Tab Browser.</p>
<!-- @@@QWebSettings -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$FontFamily$$$StandardFont$$$FixedFont$$$SerifFont$$$SansSerifFont$$$CursiveFont$$$FantasyFont -->
<h3 class="fn" id="FontFamily-enum"><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>
<div class="table"><table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><code>QWebSettings::StandardFont</code></td><td class="topAlign tblval"><code>0</code></td></tr>
<tr><td class="topAlign"><code>QWebSettings::FixedFont</code></td><td class="topAlign tblval"><code>1</code></td></tr>
<tr><td class="topAlign"><code>QWebSettings::SerifFont</code></td><td class="topAlign tblval"><code>2</code></td></tr>
<tr><td class="topAlign"><code>QWebSettings::SansSerifFont</code></td><td class="topAlign tblval"><code>3</code></td></tr>
<tr><td class="topAlign"><code>QWebSettings::CursiveFont</code></td><td class="topAlign tblval"><code>4</code></td></tr>
<tr><td class="topAlign"><code>QWebSettings::FantasyFont</code></td><td class="topAlign tblval"><code>5</code></td></tr>
</table></div>
<!-- @@@FontFamily -->
<!-- $$$FontSize$$$MinimumFontSize$$$MinimumLogicalFontSize$$$DefaultFontSize$$$DefaultFixedFontSize -->
<h3 class="fn" id="FontSize-enum"><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>
<div class="table"><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"><code>QWebSettings::MinimumFontSize</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The hard minimum font size.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::MinimumLogicalFontSize</code></td><td class="topAlign tblval"><code>1</code></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"><code>QWebSettings::DefaultFontSize</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The default font size for regular text.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::DefaultFixedFontSize</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The default font size for fixed-pitch text.</td></tr>
</table></div>
<!-- @@@FontSize -->
<!-- $$$ThirdPartyCookiePolicy$$$AlwaysAllowThirdPartyCookies$$$AlwaysBlockThirdPartyCookies$$$AllowThirdPartyWithExistingCookies -->
<h3 class="fn" id="ThirdPartyCookiePolicy-enum"><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>
<div class="table"><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"><code>QWebSettings::AlwaysAllowThirdPartyCookies</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Allow third-party resources to set and retrieve cookies.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::AlwaysBlockThirdPartyCookies</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Never allow third-party resources to set and retrieve cookies.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::AllowThirdPartyWithExistingCookies</code></td><td class="topAlign tblval"><code>2</code></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></div>
<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$$$WebAudioEnabled$$$Accelerated2dCanvasEnabled$$$MediaSourceEnabled$$$MediaEnabled$$$WebSecurityEnabled$$$FullScreenSupportEnabled$$$ImagesEnabled$$$AllowRunningInsecureContent -->
<h3 class="fn" id="WebAttribute-enum"><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>
<div class="table"><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"><code>QWebSettings::AutoLoadImages</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">Specifies whether images are automatically loaded in web pages. This is enabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::DnsPrefetchEnabled</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::JavascriptEnabled</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Enables or disables the running of JavaScript programs. This is enabled by default</td></tr>
<tr><td class="topAlign"><code>QWebSettings::JavaEnabled</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Enables or disables Java applets. Currently Java applets are not supported.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::PluginsEnabled</code></td><td class="topAlign tblval"><code>3</code></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"><code>QWebSettings::PrivateBrowsingEnabled</code></td><td class="topAlign tblval"><code>4</code></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"><code>QWebSettings::JavascriptCanOpenWindows</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">Specifies whether JavaScript programs can open popup windows without user interaction. This is disabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::JavascriptCanCloseWindows</code></td><td class="topAlign tblval">?</td><td class="topAlign">Specifies whether JavaScript programs can close windows. This is disabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::JavascriptCanAccessClipboard</code></td><td class="topAlign tblval"><code>6</code></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"><code>QWebSettings::DeveloperExtrasEnabled</code></td><td class="topAlign tblval"><code>7</code></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"><code>QWebSettings::SpatialNavigationEnabled</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::LinksIncludedInFocusChain</code></td><td class="topAlign tblval"><code>8</code></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"><code>QWebSettings::ZoomTextOnly</code></td><td class="topAlign tblval"><code>9</code></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"><code>QWebSettings::PrintElementBackgrounds</code></td><td class="topAlign tblval"><code>10</code></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"><code>QWebSettings::OfflineStorageDatabaseEnabled</code></td><td class="topAlign tblval"><code>11</code></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"><code>QWebSettings::OfflineWebApplicationCacheEnabled</code></td><td class="topAlign tblval"><code>12</code></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"><code>QWebSettings::LocalStorageEnabled</code></td><td class="topAlign tblval"><code>13</code></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"><code>QWebSettings::LocalStorageDatabaseEnabled</code></td><td class="topAlign tblval"><code>LocalStorageEnabled</code></td><td class="topAlign"><i>This enum value is deprecated.</i> Use QWebSettings::LocalStorageEnabled instead.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::LocalContentCanAccessRemoteUrls</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::LocalContentCanAccessFileUrls</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::XSSAuditingEnabled</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::AcceleratedCompositingEnabled</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::TiledBackingStoreEnabled</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::FrameFlatteningEnabled</code></td><td class="topAlign tblval">?</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"><code>QWebSettings::SiteSpecificQuirksEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">This setting enables WebKit's workaround for broken sites. It is enabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::CSSRegionsEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">This setting enables support for the CSS 3 Regions module. This CSS module is currently only a draft and support for it is enabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::ScrollAnimatorEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">This setting enables animated scrolling. It is disabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::CaretBrowsingEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">This setting enables caret browsing. It is disabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::NotificationsEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">Specifies whether support for the HTML 5 web notifications is enabled or not. This is enabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::Accelerated2dCanvasEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">Specifies whether the HTML5 2D canvas should be a OpenGL framebuffer. This makes many painting operations faster, but slows down pixel access. This is disabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::WebSecurityEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">Specifies whether browser should enforce same-origin policy for scripts downloaded from remote servers. This setting is set to true by default. Note that setting this flag to false is strongly discouraged as it makes the browser more prone to malicious code. This setting is intended primarily for site-specific browsers (i.e. when the user can't navigate to unsecure web page) and for testing web applications before deployment.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::WebGLEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">This setting enables support for WebGL. It is enabled by default.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::HyperlinkAuditingEnabled</code></td><td class="topAlign tblval">?</td><td class="topAlign">This setting enables support for hyperlink auditing (<a ping>). It is disabled by default.</td></tr>
</table></div>
<!-- @@@WebAttribute -->
<!-- $$$WebGraphic$$$MissingImageGraphic$$$MissingPluginGraphic$$$DefaultFrameIconGraphic$$$TextAreaSizeGripCornerGraphic$$$DeleteButtonGraphic$$$InputSpeechButtonGraphic$$$SearchCancelButtonGraphic$$$SearchCancelButtonPressedGraphic -->
<h3 class="fn" id="WebGraphic-enum"><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>
<div class="table"><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"><code>QWebSettings::MissingImageGraphic</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The replacement graphic shown when an image could not be loaded.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::MissingPluginGraphic</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">The replacement graphic shown when a plugin could not be loaded.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::DefaultFrameIconGraphic</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The default icon for <a href="qwebframe.html#icon-prop">QWebFrame::icon</a>().</td></tr>
<tr><td class="topAlign"><code>QWebSettings::TextAreaSizeGripCornerGraphic</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The graphic shown for the size grip of text areas.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::DeleteButtonGraphic</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">The graphic shown for the WebKit-Editing-Delete-Button in Deletion UI.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::InputSpeechButtonGraphic</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">The graphic shown in input fields that support speech recognition.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::SearchCancelButtonGraphic</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">The graphic shown for clearing the text in a search field.</td></tr>
<tr><td class="topAlign"><code>QWebSettings::SearchCancelButtonPressedGraphic</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">The graphic shown when SearchCancelButtonGraphic is pressed.</td></tr>
</table></div>
<!-- @@@WebGraphic -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$clearIconDatabase[overload1]$$$clearIconDatabase -->
<h3 class="fn" id="clearIconDatabase"><a name="clearIconDatabase"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">clearIconDatabase</span>()</h3>
<p>Clears the icon database.</p>
<!-- @@@clearIconDatabase -->
<!-- $$$clearMemoryCaches[overload1]$$$clearMemoryCaches -->
<h3 class="fn" id="clearMemoryCaches"><a name="clearMemoryCaches"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">clearMemoryCaches</span>()</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" id="cssMediaType"><a name="cssMediaType"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></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 <a href="qwebsettings.html#setCSSMediaType">setCSSMediaType</a> and not the one used internally.</p><!-- @@@cssMediaType -->
<!-- $$$defaultTextEncoding[overload1]$$$defaultTextEncoding -->
<h3 class="fn" id="defaultTextEncoding"><a name="defaultTextEncoding"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></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" id="enablePersistentStorage"><a name="enablePersistentStorage"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">enablePersistentStorage</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>path</i> = QString())</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 <a href="../qtgui/qdesktopservices-obsolete.html#StandardLocation-enum">DataLocation</a> 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" id="fontFamily"><a name="fontFamily"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></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" id="fontSize"><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" id="globalSettings"><a name="globalSettings"></a><code>[static] </code><span class="type">QWebSettings</span> *QWebSettings::<span class="name">globalSettings</span>()</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" id="iconDatabasePath"><a name="iconDatabasePath"></a><code>[static] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QWebSettings::<span class="name">iconDatabasePath</span>()</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" id="iconForUrl"><a name="iconForUrl"></a><code>[static] </code><span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> QWebSettings::<span class="name">iconForUrl</span>(const <span class="type"><a href="../qtcore/qurl.html">QUrl</a></span> &<i>url</i>)</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 <a href="../qtgui/qicon.html">QIcon</a> 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" id="localStoragePath"><a name="localStoragePath"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></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" id="maximumPagesInCache"><a name="maximumPagesInCache"></a><code>[static] </code><span class="type">int</span> QWebSettings::<span class="name">maximumPagesInCache</span>()</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" id="offlineStorageDefaultQuota"><a name="offlineStorageDefaultQuota"></a><code>[static] </code><span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> QWebSettings::<span class="name">offlineStorageDefaultQuota</span>()</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" id="offlineStoragePath"><a name="offlineStoragePath"></a><code>[static] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QWebSettings::<span class="name">offlineStoragePath</span>()</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" id="offlineWebApplicationCachePath"><a name="offlineWebApplicationCachePath"></a><code>[static] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QWebSettings::<span class="name">offlineWebApplicationCachePath</span>()</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" id="offlineWebApplicationCacheQuota"><a name="offlineWebApplicationCacheQuota"></a><code>[static] </code><span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> QWebSettings::<span class="name">offlineWebApplicationCacheQuota</span>()</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 -->
<!-- $$$pluginSearchPaths[overload1]$$$pluginSearchPaths -->
<h3 class="fn" id="pluginSearchPaths"><a name="pluginSearchPaths"></a><code>[static] </code><span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> QWebSettings::<span class="name">pluginSearchPaths</span>()</h3>
<p>Returns a list of search paths that are used by WebKit to look for NPAPI plugins.</p>
<p><b>See also </b><a href="qwebsettings.html#setPluginSearchPaths">setPluginSearchPaths</a>().</p>
<!-- @@@pluginSearchPaths -->
<!-- $$$resetAttribute[overload1]$$$resetAttributeWebAttribute -->
<h3 class="fn" id="resetAttribute"><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" id="resetFontFamily"><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" id="resetFontSize"><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" id="setAttribute"><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" id="setCSSMediaType"><a name="setCSSMediaType"></a><span class="type">void</span> QWebSettings::<span class="name">setCSSMediaType</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></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 <a href="../qtcore/qstring.html">QString</a> will restore the default value.</p><!-- @@@setCSSMediaType -->
<!-- $$$setDefaultTextEncoding[overload1]$$$setDefaultTextEncodingconstQString& -->
<h3 class="fn" id="setDefaultTextEncoding"><a name="setDefaultTextEncoding"></a><span class="type">void</span> QWebSettings::<span class="name">setDefaultTextEncoding</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></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 <a href="../qtcore/qtextcodec.html">QTextCodec</a></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" id="setFontFamily"><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"><a href="../qtcore/qstring.html">QString</a></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" id="setFontSize"><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" id="setIconDatabasePath"><a name="setIconDatabasePath"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setIconDatabasePath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>path</i>)</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" id="setLocalStoragePath"><a name="setLocalStoragePath"></a><span class="type">void</span> QWebSettings::<span class="name">setLocalStoragePath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></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" id="setMaximumPagesInCache"><a name="setMaximumPagesInCache"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setMaximumPagesInCache</span>(<span class="type">int</span> <i>pages</i>)</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" id="setObjectCacheCapacities"><a name="setObjectCacheCapacities"></a><code>[static] </code><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>)</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" id="setOfflineStorageDefaultQuota"><a name="setOfflineStorageDefaultQuota"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setOfflineStorageDefaultQuota</span>(<span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> <i>maximumSize</i>)</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" id="setOfflineStoragePath"><a name="setOfflineStoragePath"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setOfflineStoragePath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>path</i>)</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" id="setOfflineWebApplicationCachePath"><a name="setOfflineWebApplicationCachePath"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setOfflineWebApplicationCachePath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>path</i>)</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" id="setOfflineWebApplicationCacheQuota"><a name="setOfflineWebApplicationCacheQuota"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setOfflineWebApplicationCacheQuota</span>(<span class="type"><a href="../qtcore/qtglobal.html#qint64-typedef">qint64</a></span> <i>maximumSize</i>)</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 -->
<!-- $$$setPluginSearchPaths[overload1]$$$setPluginSearchPathsconstQStringList& -->
<h3 class="fn" id="setPluginSearchPaths"><a name="setPluginSearchPaths"></a><code>[static] </code><span class="type">void</span> QWebSettings::<span class="name">setPluginSearchPaths</span>(const <span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> &<i>paths</i>)</h3>
<p>Changes the NPAPI plugin search paths to <i>paths</i>.</p>
<p><b>See also </b><a href="qwebsettings.html#pluginSearchPaths">pluginSearchPaths</a>().</p>
<!-- @@@setPluginSearchPaths -->
<!-- $$$setThirdPartyCookiePolicy[overload1]$$$setThirdPartyCookiePolicyThirdPartyCookiePolicy -->
<h3 class="fn" id="setThirdPartyCookiePolicy"><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" id="setUserStyleSheetUrl"><a name="setUserStyleSheetUrl"></a><span class="type">void</span> QWebSettings::<span class="name">setUserStyleSheetUrl</span>(const <span class="type"><a href="../qtcore/qurl.html">QUrl</a></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" id="setWebGraphic"><a name="setWebGraphic"></a><code>[static] </code><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"><a href="../qtgui/qpixmap.html">QPixmap</a></span> &<i>graphic</i>)</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" id="testAttribute"><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" id="thirdPartyCookiePolicy"><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" id="userStyleSheetUrl"><a name="userStyleSheetUrl"></a><span class="type"><a href="../qtcore/qurl.html">QUrl</a></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" id="webGraphic"><a name="webGraphic"></a><code>[static] </code><span class="type"><a href="../qtgui/qpixmap.html">QPixmap</a></span> QWebSettings::<span class="name">webGraphic</span>(<span class="type"><a href="qwebsettings.html#WebGraphic-enum">WebGraphic</a></span> <i>type</i>)</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> 2017 The Qt Company Ltd.
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> 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. </p>
</div>
</body>
</html>
|