Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 7034

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" />
<!-- qwebpage.cpp -->
  <title>Qt 4.8: QWebPage Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtwebkit.html">QtWebKit</a></li>
<li>QWebPage</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#macros">Macros</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#using-qwebpage-in-a-widget-less-environment">Using QWebPage in a Widget-less Environment</a></li>
</ul>
</div>
<h1 class="title">QWebPage Class Reference</h1>
<!-- $$$QWebPage-brief -->
<p>The QWebPage class provides an object to view and edit web documents. <a href="#details">More...</a></p>
<!-- @@@QWebPage -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QWebPage&gt;</span></pre><p><b>Inherits: </b><a href="qobject.html">QObject</a>.</p>
<p>This class was introduced in Qt 4.4.</p>
<ul>
<li><a href="qwebpage-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"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-choosemultiplefilesextensionoption.html">ChooseMultipleFilesExtensionOption</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-choosemultiplefilesextensionreturn.html">ChooseMultipleFilesExtensionReturn</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-errorpageextensionoption.html">ErrorPageExtensionOption</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-errorpageextensionreturn.html">ErrorPageExtensionReturn</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-extensionoption.html">ExtensionOption</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-extensionreturn.html">ExtensionReturn</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> class </td><td class="memItemRight bottomAlign"><b><a href="qwebpage-viewportattributes.html">ViewportAttributes</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#ErrorDomain-enum">ErrorDomain</a></b> { QtNetwork, Http, WebKit }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#Extension-enum">Extension</a></b> { ChooseMultipleFilesExtension, ErrorPageExtension }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#Feature-enum">Feature</a></b> { Notifications, Geolocation }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#FindFlag-enum">FindFlag</a></b> { FindBackward, FindCaseSensitively, FindWrapsAroundDocument, HighlightAllOccurrences }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#FindFlag-enum">FindFlags</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#LinkDelegationPolicy-enum">LinkDelegationPolicy</a></b> { DontDelegateLinks, DelegateExternalLinks, DelegateAllLinks }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#NavigationType-enum">NavigationType</a></b> { NavigationTypeLinkClicked, NavigationTypeFormSubmitted, NavigationTypeBackOrForward, NavigationTypeReload, NavigationTypeFormResubmitted, NavigationTypeOther }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#PermissionPolicy-enum">PermissionPolicy</a></b> { PermissionUnknown, PermissionGrantedByUser, PermissionDeniedByUser }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#WebAction-enum">WebAction</a></b> { NoWebAction, OpenLink, OpenLinkInNewWindow, OpenFrameInNewWindow, ..., AlignRight }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#WebWindowType-enum">WebWindowType</a></b> { WebBrowserWindow, WebModalDialog }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qwebpage.html#contentEditable-prop">contentEditable</a></b> : bool</li>
<li class="fn"><b><a href="qwebpage.html#forwardUnsupportedContent-prop">forwardUnsupportedContent</a></b> : bool</li>
<li class="fn"><b><a href="qwebpage.html#hasSelection-prop">hasSelection</a></b> : const bool</li>
<li class="fn"><b><a href="qwebpage.html#linkDelegationPolicy-prop">linkDelegationPolicy</a></b> : LinkDelegationPolicy</li>
<li class="fn"><b><a href="qwebpage.html#modified-prop">modified</a></b> : const bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qwebpage.html#palette-prop">palette</a></b> : QPalette</li>
<li class="fn"><b><a href="qwebpage.html#preferredContentsSize-prop">preferredContentsSize</a></b> : QSize</li>
<li class="fn"><b><a href="qwebpage.html#selectedHtml-prop">selectedHtml</a></b> : const QString</li>
<li class="fn"><b><a href="qwebpage.html#selectedText-prop">selectedText</a></b> : const QString</li>
<li class="fn"><b><a href="qwebpage.html#viewportSize-prop">viewportSize</a></b> : QSize</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#QWebPage">QWebPage</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#dtor.QWebPage">~QWebPage</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#action">action</a></b> ( WebAction <i>action</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint64 </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#bytesReceived">bytesReceived</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMenu * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#createStandardContextMenu">createStandardContextMenu</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebFrame * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#currentFrame">currentFrame</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#extension">extension</a></b> ( Extension <i>extension</i>, const ExtensionOption * <i>option</i> = 0, ExtensionReturn * <i>output</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#findText">findText</a></b> ( const QString &amp; <i>subString</i>, FindFlags <i>options</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#focusNextPrevChild">focusNextPrevChild</a></b> ( bool <i>next</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#forwardUnsupportedContent-prop">forwardUnsupportedContent</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebFrame * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#frameAt">frameAt</a></b> ( const QPoint &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#hasSelection-prop">hasSelection</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebHistory * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#history">history</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#inputMethodQuery">inputMethodQuery</a></b> ( Qt::InputMethodQuery <i>property</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#contentEditable-prop">isContentEditable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#modified-prop">isModified</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> LinkDelegationPolicy </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#linkDelegationPolicy-prop">linkDelegationPolicy</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebFrame * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#mainFrame">mainFrame</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QNetworkAccessManager * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#networkAccessManager">networkAccessManager</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPalette </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#palette-prop">palette</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebPluginFactory * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#pluginFactory">pluginFactory</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#preferredContentsSize-prop">preferredContentsSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#selectedHtml-prop">selectedHtml</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#selectedText-prop">selectedText</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#setActualVisibleContentRect">setActualVisibleContentRect</a></b> ( const QRect &amp; <i>rect</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#contentEditable-prop">setContentEditable</a></b> ( bool <i>editable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#setFeaturePermission">setFeaturePermission</a></b> ( QWebFrame * <i>frame</i>, Feature <i>feature</i>, PermissionPolicy <i>policy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#forwardUnsupportedContent-prop">setForwardUnsupportedContent</a></b> ( bool <i>forward</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#linkDelegationPolicy-prop">setLinkDelegationPolicy</a></b> ( LinkDelegationPolicy <i>policy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#setNetworkAccessManager">setNetworkAccessManager</a></b> ( QNetworkAccessManager * <i>manager</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#palette-prop">setPalette</a></b> ( const QPalette &amp; <i>palette</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#setPluginFactory">setPluginFactory</a></b> ( QWebPluginFactory * <i>factory</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#preferredContentsSize-prop">setPreferredContentsSize</a></b> ( const QSize &amp; <i>size</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#setView">setView</a></b> ( QWidget * <i>view</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#viewportSize-prop">setViewportSize</a></b> ( const QSize &amp; <i>size</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSettings * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#settings">settings</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#supportedContentTypes">supportedContentTypes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#supportsContentType">supportsContentType</a></b> ( const QString &amp; <i>mimeType</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#supportsExtension">supportsExtension</a></b> ( Extension <i>extension</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#swallowContextMenuEvent">swallowContextMenuEvent</a></b> ( QContextMenuEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> quint64 </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#totalBytes">totalBytes</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#triggerAction">triggerAction</a></b> ( WebAction <i>action</i>, bool <i>checked</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUndoStack * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#undoStack">undoStack</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#updatePositionDependentActions">updatePositionDependentActions</a></b> ( const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#view">view</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ViewportAttributes </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#viewportAttributesForSize">viewportAttributesForSize</a></b> ( const QSize &amp; <i>availableSize</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#viewportSize-prop">viewportSize</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#event">event</a></b> ( QEvent * <i>ev</i> )</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#shouldInterruptJavaScript">shouldInterruptJavaScript</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#applicationCacheQuotaExceeded">applicationCacheQuotaExceeded</a></b> ( QWebSecurityOrigin * <i>origin</i>, quint64 <i>defaultOriginQuota</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#contentsChanged">contentsChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#databaseQuotaExceeded">databaseQuotaExceeded</a></b> ( QWebFrame * <i>frame</i>, QString <i>databaseName</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#downloadRequested">downloadRequested</a></b> ( const QNetworkRequest &amp; <i>request</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#featurePermissionRequestCanceled">featurePermissionRequestCanceled</a></b> ( QWebFrame * <i>frame</i>, QWebPage::Feature <i>feature</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#featurePermissionRequested">featurePermissionRequested</a></b> ( QWebFrame * <i>frame</i>, QWebPage::Feature <i>feature</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#frameCreated">frameCreated</a></b> ( QWebFrame * <i>frame</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#geometryChangeRequested">geometryChangeRequested</a></b> ( const QRect &amp; <i>geom</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#linkClicked">linkClicked</a></b> ( const QUrl &amp; <i>url</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#linkHovered">linkHovered</a></b> ( const QString &amp; <i>link</i>, const QString &amp; <i>title</i>, const QString &amp; <i>textContent</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#loadFinished">loadFinished</a></b> ( bool <i>ok</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#loadProgress">loadProgress</a></b> ( int <i>progress</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#loadStarted">loadStarted</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#menuBarVisibilityChangeRequested">menuBarVisibilityChangeRequested</a></b> ( bool <i>visible</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#microFocusChanged">microFocusChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#printRequested">printRequested</a></b> ( QWebFrame * <i>frame</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#repaintRequested">repaintRequested</a></b> ( const QRect &amp; <i>dirtyRect</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#restoreFrameStateRequested">restoreFrameStateRequested</a></b> ( QWebFrame * <i>frame</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#saveFrameStateRequested">saveFrameStateRequested</a></b> ( QWebFrame * <i>frame</i>, QWebHistoryItem * <i>item</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#scrollRequested">scrollRequested</a></b> ( int <i>dx</i>, int <i>dy</i>, const QRect &amp; <i>rectToScroll</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#selectionChanged">selectionChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#statusBarMessage">statusBarMessage</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#statusBarVisibilityChangeRequested">statusBarVisibilityChangeRequested</a></b> ( bool <i>visible</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#toolBarVisibilityChangeRequested">toolBarVisibilityChangeRequested</a></b> ( bool <i>visible</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#unsupportedContent">unsupportedContent</a></b> ( QNetworkReply * <i>reply</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#viewportChangeRequested">viewportChangeRequested</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#windowCloseRequested">windowCloseRequested</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#acceptNavigationRequest">acceptNavigationRequest</a></b> ( QWebFrame * <i>frame</i>, const QNetworkRequest &amp; <i>request</i>, NavigationType <i>type</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#chooseFile">chooseFile</a></b> ( QWebFrame * <i>parentFrame</i>, const QString &amp; <i>suggestedFile</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QObject * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#createPlugin">createPlugin</a></b> ( const QString &amp; <i>classid</i>, const QUrl &amp; <i>url</i>, const QStringList &amp; <i>paramNames</i>, const QStringList &amp; <i>paramValues</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QWebPage * </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#createWindow">createWindow</a></b> ( WebWindowType <i>type</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#javaScriptAlert">javaScriptAlert</a></b> ( QWebFrame * <i>frame</i>, const QString &amp; <i>msg</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#javaScriptConfirm">javaScriptConfirm</a></b> ( QWebFrame * <i>frame</i>, const QString &amp; <i>msg</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#javaScriptConsoleMessage">javaScriptConsoleMessage</a></b> ( const QString &amp; <i>message</i>, int <i>lineNumber</i>, const QString &amp; <i>sourceID</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#javaScriptPrompt">javaScriptPrompt</a></b> ( QWebFrame * <i>frame</i>, const QString &amp; <i>msg</i>, const QString &amp; <i>defaultValue</i>, QString * <i>result</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#userAgentForUrl">userAgentForUrl</a></b> ( const QUrl &amp; <i>url</i> ) const</td></tr>
</table>
<ul>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#qWebKitMajorVersion">qWebKitMajorVersion</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#qWebKitMinorVersion">qWebKitMinorVersion</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#qWebKitVersion">qWebKitVersion</a></b> ()</td></tr>
</table>
<a name="macros"></a>
<h2>Macros</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#QTWEBKIT_VERSION">QTWEBKIT_VERSION</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#QTWEBKIT_VERSION_CHECK">QTWEBKIT_VERSION_CHECK</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebpage.html#QTWEBKIT_VERSION_STR">QTWEBKIT_VERSION_STR</a></b></td></tr>
</table>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QWebPage-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebPage class provides an object to view and edit web documents.</p>
<p>QWebPage holds a main frame responsible for web content, settings, the history of navigated links and actions. This class can be used, together with <a href="qwebframe.html">QWebFrame</a>, to provide functionality like <a href="qwebview.html">QWebView</a> in a widget-less environment.</p>
<p>QWebPage's API is very similar to <a href="qwebview.html">QWebView</a>, as you are still provided with common functions like <a href="qwebpage.html#action">action</a>() (known as <a href="qwebview.html#pageAction">pageAction</a>() in <a href="qwebview.html">QWebView</a>), <a href="qwebpage.html#triggerAction">triggerAction</a>(), <a href="qwebpage.html#findText">findText</a>() and <a href="qwebpage.html#settings">settings</a>(). More <a href="qwebview.html">QWebView</a>-like functions can be found in the main frame of QWebPage, obtained via the <a href="qwebpage.html#mainFrame">mainFrame</a>() function. For example, the <a href="qwebframe.html#load">load</a>(), <a href="qwebframe.html#url-prop">setUrl</a>() and <a href="qwebframe.html#setHtml">setHtml</a>() functions for QWebPage can be accessed using <a href="qwebframe.html">QWebFrame</a>.</p>
<p>The <a href="qwebpage.html#loadStarted">loadStarted</a>() signal is emitted when the page begins to load.The <a href="qwebpage.html#loadProgress">loadProgress</a>() signal, on the other hand, is emitted whenever an element of the web page completes loading, such as an embedded image, a script, etc. Finally, the <a href="qwebpage.html#loadFinished">loadFinished</a>() signal is emitted when the page contents are loaded completely, independent of script execution or page rendering. Its argument, either true or false, indicates whether or not the load operation succeeded.</p>
<a name="using-qwebpage-in-a-widget-less-environment"></a>
<h3>Using QWebPage in a Widget-less Environment</h3>
<p>Before you begin painting a QWebPage object, you need to set the size of the viewport by calling <a href="qwebpage.html#viewportSize-prop">setViewportSize</a>(). Then, you invoke the main frame's render function (<a href="qwebframe.html#render">QWebFrame::render</a>()). An example of this is shown in the code snippet below.</p>
<p>Suppose we have a <tt>Thumbnail</tt> class as follows:</p>
<pre class="cpp"> <span class="keyword">class</span> Thumbnailer : <span class="keyword">public</span> <span class="type"><a href="qobject.html">QObject</a></span>
 {
     Q_OBJECT

 <span class="keyword">public</span>:
     Thumbnailer(<span class="keyword">const</span> <span class="type"><a href="qurl.html">QUrl</a></span> <span class="operator">&amp;</span>url);

 <span class="keyword">signals</span>:
     <span class="type">void</span> finished();

 <span class="keyword">private</span> <span class="keyword">slots</span>:
     <span class="type">void</span> render();

 <span class="keyword">private</span>:
     <span class="type">QWebPage</span> page;

 };</pre>
<p>The <tt>Thumbnail</tt>'s constructor takes in a <i>url</i>. We connect our QWebPage object's <a href="qwebpage.html#loadFinished">loadFinished()</a> signal to our private slot, <tt>render()</tt>.</p>
<pre class="cpp"> Thumbnailer<span class="operator">::</span>Thumbnailer(<span class="keyword">const</span> <span class="type"><a href="qurl.html">QUrl</a></span> <span class="operator">&amp;</span>url)
 {
     page<span class="operator">.</span>mainFrame()<span class="operator">-</span><span class="operator">&gt;</span>load(url);
     connect(<span class="operator">&amp;</span>page<span class="operator">,</span> SIGNAL(loadFinished(<span class="type">bool</span>))<span class="operator">,</span>
         <span class="keyword">this</span><span class="operator">,</span> SLOT(render()));
 }</pre>
<p>The <tt>render()</tt> function shows how we can paint a thumbnail using a QWebPage object.</p>
<pre class="cpp"> <span class="type">void</span> Thumbnailer<span class="operator">::</span>render()
 {
     page<span class="operator">.</span>setViewportSize(page<span class="operator">.</span>mainFrame()<span class="operator">-</span><span class="operator">&gt;</span>contentsSize());
     <span class="type"><a href="qimage.html">QImage</a></span> image(page<span class="operator">.</span>viewportSize()<span class="operator">,</span> <span class="type"><a href="qimage.html">QImage</a></span><span class="operator">::</span>Format_ARGB32);
     <span class="type"><a href="qpainter.html">QPainter</a></span> painter(<span class="operator">&amp;</span>image);

     page<span class="operator">.</span>mainFrame()<span class="operator">-</span><span class="operator">&gt;</span>render(<span class="operator">&amp;</span>painter);
     painter<span class="operator">.</span>end();

     <span class="type"><a href="qimage.html">QImage</a></span> thumbnail <span class="operator">=</span> image<span class="operator">.</span>scaled(<span class="number">400</span><span class="operator">,</span> <span class="number">400</span>);
     thumbnail<span class="operator">.</span>save(<span class="string">&quot;thumbnail.png&quot;</span>);

     <span class="keyword">emit</span> finished();
 }</pre>
<p>We begin by setting the <a href="qwebpage.html#viewportSize-prop">viewportSize</a> and then we instantiate a <a href="qimage.html">QImage</a> object, <tt>image</tt>, with the same size as our <a href="qwebpage.html#viewportSize-prop">viewportSize</a>. This image is then sent as a parameter to <tt>painter</tt>. Next, we render the contents of the main frame and its subframes into <tt>painter</tt>. Finally, we save the scaled image.</p>
</div>
<p><b>See also </b><a href="qwebframe.html">QWebFrame</a>.</p>
<!-- @@@QWebPage -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ErrorDomain$$$QtNetwork$$$Http$$$WebKit -->
<h3 class="fn"><a name="ErrorDomain-enum"></a>enum QWebPage::<span class="name">ErrorDomain</span></h3>
<p>This enum describes the domain of an <a href="qwebpage-errorpageextensionoption.html">ErrorPageExtensionOption</a> object (i.e&#x2e; the layer in which the error occurred).</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>QWebPage::QtNetwork</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The error occurred in the QtNetwork layer; the error code is of type <a href="qnetworkreply.html#NetworkError-enum">QNetworkReply::NetworkError</a>.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Http</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The error occurred in the HTTP layer; the error code is a HTTP status code (see <a href="qnetworkrequest.html#Attribute-enum">QNetworkRequest::HttpStatusCodeAttribute</a>).</td></tr>
<tr><td class="topAlign"><tt>QWebPage::WebKit</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The error is an internal WebKit error.</td></tr>
</table>
<p>This enum was introduced or modified in Qt 4.6.</p>
<!-- @@@ErrorDomain -->
<!-- $$$Extension$$$ChooseMultipleFilesExtension$$$ErrorPageExtension -->
<h3 class="fn"><a name="Extension-enum"></a>enum QWebPage::<span class="name">Extension</span></h3>
<p>This enum describes the types of extensions that the page can support. Before using these extensions, you should verify that the extension is supported by calling <a href="qwebpage.html#supportsExtension">supportsExtension</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>QWebPage::ChooseMultipleFilesExtension</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Whether the web page supports multiple file selection. This extension is invoked when the web content requests one or more file names, for example as a result of the user clicking on a &quot;file upload&quot; button in a HTML form where multiple file selection is allowed.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ErrorPageExtension</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Whether the web page can provide an error page when loading fails. (introduced in Qt 4.6)</td></tr>
</table>
<p><b>See also </b><a href="qwebpage-choosemultiplefilesextensionoption.html">ChooseMultipleFilesExtensionOption</a>, <a href="qwebpage-choosemultiplefilesextensionreturn.html">ChooseMultipleFilesExtensionReturn</a>, <a href="qwebpage-errorpageextensionoption.html">ErrorPageExtensionOption</a>, and <a href="qwebpage-errorpageextensionreturn.html">ErrorPageExtensionReturn</a>.</p>
<!-- @@@Extension -->
<!-- $$$Feature$$$Notifications$$$Geolocation -->
<h3 class="fn"><a name="Feature-enum"></a>enum QWebPage::<span class="name">Feature</span></h3>
<!-- @@@Feature -->
<!-- $$$FindFlag$$$FindBackward$$$FindCaseSensitively$$$FindWrapsAroundDocument$$$HighlightAllOccurrences -->
<h3 class="flags"><a name="FindFlag-enum"></a>enum QWebPage::<span class="name">FindFlag</span><br/>flags QWebPage::<span class="name">FindFlags</span></h3>
<p>This enum describes the options available to the <a href="qwebpage.html#findText">findText</a>() function. The options can be OR-ed together from the following list:</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>QWebPage::FindBackward</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Searches backwards instead of forwards.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::FindCaseSensitively</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">By default <a href="qwebpage.html#findText">findText</a>() works case insensitive. Specifying this option changes the behaviour to a case sensitive find operation.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::FindWrapsAroundDocument</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">Makes <a href="qwebpage.html#findText">findText</a>() restart from the beginning of the document if the end was reached and the text was not found.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::HighlightAllOccurrences</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">Highlights all existing occurrences of a specific string. (This value was introduced in 4.6&#x2e;)</td></tr>
</table>
<p>The FindFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;FindFlag&gt;. It stores an OR combination of FindFlag values.</p>
<!-- @@@FindFlag -->
<!-- $$$LinkDelegationPolicy$$$DontDelegateLinks$$$DelegateExternalLinks$$$DelegateAllLinks -->
<h3 class="fn"><a name="LinkDelegationPolicy-enum"></a>enum QWebPage::<span class="name">LinkDelegationPolicy</span></h3>
<p>This enum defines the delegation policies a webpage can have when activating links and emitting the <a href="qwebpage.html#linkClicked">linkClicked</a>() signal.</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>QWebPage::DontDelegateLinks</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">No links are delegated. Instead, <a href="qwebpage.html">QWebPage</a> tries to handle them all.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::DelegateExternalLinks</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">When activating links that point to documents not stored on the local filesystem or an equivalent - such as the Qt resource system - then <a href="qwebpage.html#linkClicked">linkClicked</a>() is emitted.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::DelegateAllLinks</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Whenever a link is activated the <a href="qwebpage.html#linkClicked">linkClicked</a>() signal is emitted.</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#linkDelegationPolicy-prop">QWebPage::linkDelegationPolicy</a>.</p>
<!-- @@@LinkDelegationPolicy -->
<!-- $$$NavigationType$$$NavigationTypeLinkClicked$$$NavigationTypeFormSubmitted$$$NavigationTypeBackOrForward$$$NavigationTypeReload$$$NavigationTypeFormResubmitted$$$NavigationTypeOther -->
<h3 class="fn"><a name="NavigationType-enum"></a>enum QWebPage::<span class="name">NavigationType</span></h3>
<p>This enum describes the types of navigation available when browsing through hyperlinked documents.</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>QWebPage::NavigationTypeLinkClicked</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The user clicked on a link or pressed return on a focused link.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::NavigationTypeFormSubmitted</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The user activated a submit button for an HTML form.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::NavigationTypeBackOrForward</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Navigation to a previously shown document in the back or forward history is requested.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::NavigationTypeReload</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The user activated the reload action.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::NavigationTypeFormResubmitted</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">An HTML form was submitted a second time.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::NavigationTypeOther</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">A navigation to another document using a method not listed above.</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#acceptNavigationRequest">acceptNavigationRequest</a>().</p>
<!-- @@@NavigationType -->
<!-- $$$PermissionPolicy$$$PermissionUnknown$$$PermissionGrantedByUser$$$PermissionDeniedByUser -->
<h3 class="fn"><a name="PermissionPolicy-enum"></a>enum QWebPage::<span class="name">PermissionPolicy</span></h3>
<!-- @@@PermissionPolicy -->
<!-- $$$WebAction$$$NoWebAction$$$OpenLink$$$OpenLinkInNewWindow$$$OpenFrameInNewWindow$$$DownloadLinkToDisk$$$CopyLinkToClipboard$$$OpenImageInNewWindow$$$DownloadImageToDisk$$$CopyImageToClipboard$$$Back$$$Forward$$$Stop$$$Reload$$$Cut$$$Copy$$$Paste$$$Undo$$$Redo$$$MoveToNextChar$$$MoveToPreviousChar$$$MoveToNextWord$$$MoveToPreviousWord$$$MoveToNextLine$$$MoveToPreviousLine$$$MoveToStartOfLine$$$MoveToEndOfLine$$$MoveToStartOfBlock$$$MoveToEndOfBlock$$$MoveToStartOfDocument$$$MoveToEndOfDocument$$$SelectNextChar$$$SelectPreviousChar$$$SelectNextWord$$$SelectPreviousWord$$$SelectNextLine$$$SelectPreviousLine$$$SelectStartOfLine$$$SelectEndOfLine$$$SelectStartOfBlock$$$SelectEndOfBlock$$$SelectStartOfDocument$$$SelectEndOfDocument$$$DeleteStartOfWord$$$DeleteEndOfWord$$$SetTextDirectionDefault$$$SetTextDirectionLeftToRight$$$SetTextDirectionRightToLeft$$$ToggleBold$$$ToggleItalic$$$ToggleUnderline$$$InspectElement$$$InsertParagraphSeparator$$$InsertLineSeparator$$$SelectAll$$$ReloadAndBypassCache$$$PasteAndMatchStyle$$$RemoveFormat$$$ToggleStrikethrough$$$ToggleSubscript$$$ToggleSuperscript$$$InsertUnorderedList$$$InsertOrderedList$$$Indent$$$Outdent$$$AlignCenter$$$AlignJustified$$$AlignLeft$$$AlignRight$$$StopScheduledPageRefresh$$$CopyImageUrlToClipboard$$$WebActionCount -->
<h3 class="fn"><a name="WebAction-enum"></a>enum QWebPage::<span class="name">WebAction</span></h3>
<p>This enum describes the types of action which can be performed on the web page.</p>
<p>Actions only have an effect when they are applicable. The availability of actions can be be determined by checking <a href="qaction.html#enabled-prop">isEnabled()</a> on the action returned by <a href="qwebpage.html#action">action</a>().</p>
<p>One method of enabling the text editing, cursor movement, and text selection actions is by setting <a href="qwebpage.html#contentEditable-prop">contentEditable</a> to true.</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>QWebPage::NoWebAction</tt></td><td class="topAlign"><tt>-1</tt></td><td class="topAlign">No action is triggered.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::OpenLink</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Open the current link.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::OpenLinkInNewWindow</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Open the current link in a new window.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::OpenFrameInNewWindow</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Replicate the current frame in a new window.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::DownloadLinkToDisk</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">Download the current link to the disk.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::CopyLinkToClipboard</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">Copy the current link to the clipboard.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::OpenImageInNewWindow</tt></td><td class="topAlign"><tt>5</tt></td><td class="topAlign">Open the highlighted image in a new window.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::DownloadImageToDisk</tt></td><td class="topAlign"><tt>6</tt></td><td class="topAlign">Download the highlighted image to the disk.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::CopyImageToClipboard</tt></td><td class="topAlign"><tt>7</tt></td><td class="topAlign">Copy the highlighted image to the clipboard.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::CopyImageUrlToClipboard</tt></td><td class="topAlign"><tt>68</tt></td><td class="topAlign">Copy the highlighted image's URL to the clipboard.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Back</tt></td><td class="topAlign"><tt>8</tt></td><td class="topAlign">Navigate back in the history of navigated links.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Forward</tt></td><td class="topAlign"><tt>9</tt></td><td class="topAlign">Navigate forward in the history of navigated links.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Stop</tt></td><td class="topAlign"><tt>10</tt></td><td class="topAlign">Stop loading the current page.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::StopScheduledPageRefresh</tt></td><td class="topAlign"><tt>67</tt></td><td class="topAlign">Stop all pending page refresh/redirect requests.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Reload</tt></td><td class="topAlign"><tt>11</tt></td><td class="topAlign">Reload the current page.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ReloadAndBypassCache</tt></td><td class="topAlign"><tt>53</tt></td><td class="topAlign">Reload the current page, but do not use any local cache. (Added in Qt 4.6)</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Cut</tt></td><td class="topAlign"><tt>12</tt></td><td class="topAlign">Cut the content currently selected into the clipboard.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Copy</tt></td><td class="topAlign"><tt>13</tt></td><td class="topAlign">Copy the content currently selected into the clipboard.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Paste</tt></td><td class="topAlign"><tt>14</tt></td><td class="topAlign">Paste content from the clipboard.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Undo</tt></td><td class="topAlign"><tt>15</tt></td><td class="topAlign">Undo the last editing action.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Redo</tt></td><td class="topAlign"><tt>16</tt></td><td class="topAlign">Redo the last editing action.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToNextChar</tt></td><td class="topAlign"><tt>17</tt></td><td class="topAlign">Move the cursor to the next character.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToPreviousChar</tt></td><td class="topAlign"><tt>18</tt></td><td class="topAlign">Move the cursor to the previous character.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToNextWord</tt></td><td class="topAlign"><tt>19</tt></td><td class="topAlign">Move the cursor to the next word.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToPreviousWord</tt></td><td class="topAlign"><tt>20</tt></td><td class="topAlign">Move the cursor to the previous word.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToNextLine</tt></td><td class="topAlign"><tt>21</tt></td><td class="topAlign">Move the cursor to the next line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToPreviousLine</tt></td><td class="topAlign"><tt>22</tt></td><td class="topAlign">Move the cursor to the previous line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToStartOfLine</tt></td><td class="topAlign"><tt>23</tt></td><td class="topAlign">Move the cursor to the start of the line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToEndOfLine</tt></td><td class="topAlign"><tt>24</tt></td><td class="topAlign">Move the cursor to the end of the line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToStartOfBlock</tt></td><td class="topAlign"><tt>25</tt></td><td class="topAlign">Move the cursor to the start of the block.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToEndOfBlock</tt></td><td class="topAlign"><tt>26</tt></td><td class="topAlign">Move the cursor to the end of the block.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToStartOfDocument</tt></td><td class="topAlign"><tt>27</tt></td><td class="topAlign">Move the cursor to the start of the document.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::MoveToEndOfDocument</tt></td><td class="topAlign"><tt>28</tt></td><td class="topAlign">Move the cursor to the end of the document.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectNextChar</tt></td><td class="topAlign"><tt>29</tt></td><td class="topAlign">Select to the next character.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectPreviousChar</tt></td><td class="topAlign"><tt>30</tt></td><td class="topAlign">Select to the previous character.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectNextWord</tt></td><td class="topAlign"><tt>31</tt></td><td class="topAlign">Select to the next word.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectPreviousWord</tt></td><td class="topAlign"><tt>32</tt></td><td class="topAlign">Select to the previous word.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectNextLine</tt></td><td class="topAlign"><tt>33</tt></td><td class="topAlign">Select to the next line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectPreviousLine</tt></td><td class="topAlign"><tt>34</tt></td><td class="topAlign">Select to the previous line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectStartOfLine</tt></td><td class="topAlign"><tt>35</tt></td><td class="topAlign">Select to the start of the line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectEndOfLine</tt></td><td class="topAlign"><tt>36</tt></td><td class="topAlign">Select to the end of the line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectStartOfBlock</tt></td><td class="topAlign"><tt>37</tt></td><td class="topAlign">Select to the start of the block.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectEndOfBlock</tt></td><td class="topAlign"><tt>38</tt></td><td class="topAlign">Select to the end of the block.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectStartOfDocument</tt></td><td class="topAlign"><tt>39</tt></td><td class="topAlign">Select to the start of the document.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectEndOfDocument</tt></td><td class="topAlign"><tt>40</tt></td><td class="topAlign">Select to the end of the document.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::DeleteStartOfWord</tt></td><td class="topAlign"><tt>41</tt></td><td class="topAlign">Delete to the start of the word.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::DeleteEndOfWord</tt></td><td class="topAlign"><tt>42</tt></td><td class="topAlign">Delete to the end of the word.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SetTextDirectionDefault</tt></td><td class="topAlign"><tt>43</tt></td><td class="topAlign">Set the text direction to the default direction.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SetTextDirectionLeftToRight</tt></td><td class="topAlign"><tt>44</tt></td><td class="topAlign">Set the text direction to left-to-right.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SetTextDirectionRightToLeft</tt></td><td class="topAlign"><tt>45</tt></td><td class="topAlign">Set the text direction to right-to-left.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ToggleBold</tt></td><td class="topAlign"><tt>46</tt></td><td class="topAlign">Toggle the formatting between bold and normal weight.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ToggleItalic</tt></td><td class="topAlign"><tt>47</tt></td><td class="topAlign">Toggle the formatting between italic and normal style.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ToggleUnderline</tt></td><td class="topAlign"><tt>48</tt></td><td class="topAlign">Toggle underlining.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::InspectElement</tt></td><td class="topAlign"><tt>49</tt></td><td class="topAlign">Show the Web Inspector with the currently highlighted HTML element.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::InsertParagraphSeparator</tt></td><td class="topAlign"><tt>50</tt></td><td class="topAlign">Insert a new paragraph.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::InsertLineSeparator</tt></td><td class="topAlign"><tt>51</tt></td><td class="topAlign">Insert a new line.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::SelectAll</tt></td><td class="topAlign"><tt>52</tt></td><td class="topAlign">Selects all content.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::PasteAndMatchStyle</tt></td><td class="topAlign"><tt>54</tt></td><td class="topAlign">Paste content from the clipboard with current style.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::RemoveFormat</tt></td><td class="topAlign"><tt>55</tt></td><td class="topAlign">Removes formatting and style.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ToggleStrikethrough</tt></td><td class="topAlign"><tt>56</tt></td><td class="topAlign">Toggle the formatting between strikethrough and normal style.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ToggleSubscript</tt></td><td class="topAlign"><tt>57</tt></td><td class="topAlign">Toggle the formatting between subscript and baseline.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::ToggleSuperscript</tt></td><td class="topAlign"><tt>58</tt></td><td class="topAlign">Toggle the formatting between supercript and baseline.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::InsertUnorderedList</tt></td><td class="topAlign"><tt>59</tt></td><td class="topAlign">Toggles the selection between an ordered list and a normal block.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::InsertOrderedList</tt></td><td class="topAlign"><tt>60</tt></td><td class="topAlign">Toggles the selection between an ordered list and a normal block.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Indent</tt></td><td class="topAlign"><tt>61</tt></td><td class="topAlign">Increases the indentation of the currently selected format block by one increment.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::Outdent</tt></td><td class="topAlign"><tt>62</tt></td><td class="topAlign">Decreases the indentation of the currently selected format block by one increment.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::AlignCenter</tt></td><td class="topAlign"><tt>63</tt></td><td class="topAlign">Applies center alignment to content.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::AlignJustified</tt></td><td class="topAlign"><tt>64</tt></td><td class="topAlign">Applies full justification to content.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::AlignLeft</tt></td><td class="topAlign"><tt>65</tt></td><td class="topAlign">Applies left justification to content.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::AlignRight</tt></td><td class="topAlign"><tt>66</tt></td><td class="topAlign">Applies right justification to content.</td></tr>
</table>
<!-- @@@WebAction -->
<!-- $$$WebWindowType$$$WebBrowserWindow$$$WebModalDialog -->
<h3 class="fn"><a name="WebWindowType-enum"></a>enum QWebPage::<span class="name">WebWindowType</span></h3>
<p>This enum describes the types of window that can be created by the <a href="qwebpage.html#createWindow">createWindow</a>() function.</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>QWebPage::WebBrowserWindow</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The window is a regular web browser window.</td></tr>
<tr><td class="topAlign"><tt>QWebPage::WebModalDialog</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The window acts as modal dialog.</td></tr>
</table>
<!-- @@@WebWindowType -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$contentEditable-prop$$$isContentEditable$$$setContentEditablebool -->
<h3 class="fn"><a name="contentEditable-prop"></a><span class="name">contentEditable</span> : <span class="type">bool</span></h3>
<p>This property holds whether the content in this QWebPage is editable or not.</p>
<p>If this property is enabled the contents of the page can be edited by the user through a visible cursor. If disabled (the default) only HTML elements in the web page with their <tt>contenteditable</tt> attribute set are editable.</p>
<p>This property was introduced in Qt 4.5.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isContentEditable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setContentEditable</b></span> ( bool <i>editable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#modified-prop">modified</a>, <a href="qwebpage.html#contentsChanged">contentsChanged</a>(), and <a href="qwebpage.html#WebAction-enum">WebAction</a>.</p>
<!-- @@@contentEditable -->
<!-- $$$forwardUnsupportedContent-prop$$$forwardUnsupportedContent$$$setForwardUnsupportedContentbool -->
<h3 class="fn"><a name="forwardUnsupportedContent-prop"></a><span class="name">forwardUnsupportedContent</span> : <span class="type">bool</span></h3>
<p>This property holds whether QWebPage should forward unsupported content.</p>
<p>If enabled, the <a href="qwebpage.html#unsupportedContent">unsupportedContent</a>() signal is emitted with a network reply that can be used to read the content.</p>
<p>If disabled, the download of such content is aborted immediately.</p>
<p>By default unsupported content is not forwarded.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>forwardUnsupportedContent</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setForwardUnsupportedContent</b></span> ( bool <i>forward</i> )</td></tr>
</table>
<!-- @@@forwardUnsupportedContent -->
<!-- $$$hasSelection-prop$$$hasSelection -->
<h3 class="fn"><a name="hasSelection-prop"></a><span class="name">hasSelection</span> : const <span class="type">bool</span></h3>
<p>This property holds whether this page contains selected content or not.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>hasSelection</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#selectionChanged">selectionChanged</a>().</p>
<!-- @@@hasSelection -->
<!-- $$$linkDelegationPolicy-prop$$$linkDelegationPolicy$$$setLinkDelegationPolicyLinkDelegationPolicy -->
<h3 class="fn"><a name="linkDelegationPolicy-prop"></a><span class="name">linkDelegationPolicy</span> : <span class="type"><a href="qwebpage.html#LinkDelegationPolicy-enum">LinkDelegationPolicy</a></span></h3>
<p>This property holds how QWebPage should delegate the handling of links through the linkClicked() signal.</p>
<p>The default is to delegate no links.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> LinkDelegationPolicy </td><td class="memItemRight bottomAlign"><span class="name"><b>linkDelegationPolicy</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLinkDelegationPolicy</b></span> ( LinkDelegationPolicy <i>policy</i> )</td></tr>
</table>
<!-- @@@linkDelegationPolicy -->
<!-- $$$modified-prop$$$isModified -->
<h3 class="fn"><a name="modified-prop"></a><span class="name">modified</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the page contains unsubmitted form data, or the contents have been changed.</p>
<p>By default, this property is false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isModified</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#contentsChanged">contentsChanged</a>(), <a href="qwebpage.html#contentEditable-prop">contentEditable</a>, and <a href="qwebpage.html#undoStack">undoStack</a>().</p>
<!-- @@@modified -->
<!-- $$$palette-prop$$$palette$$$setPaletteconstQPalette& -->
<h3 class="fn"><a name="palette-prop"></a><span class="name">palette</span> : <span class="type"><a href="qpalette.html">QPalette</a></span></h3>
<p>This property holds the page's palette.</p>
<p>The base brush of the palette is used to draw the background of the main frame.</p>
<p>By default, this property contains the application's default palette.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPalette </td><td class="memItemRight bottomAlign"><span class="name"><b>palette</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPalette</b></span> ( const QPalette &amp; <i>palette</i> )</td></tr>
</table>
<!-- @@@palette -->
<!-- $$$preferredContentsSize-prop$$$preferredContentsSize$$$setPreferredContentsSizeconstQSize& -->
<h3 class="fn"><a name="preferredContentsSize-prop"></a><span class="name">preferredContentsSize</span> : <span class="type"><a href="qsize.html">QSize</a></span></h3>
<p>This property holds a custom size used for laying out the page contents.</p>
<p>By default all pages are laid out using the viewport of the page as the base.</p>
<p>As pages mostly are designed for desktop usage, they often do not layout properly on small devices as the contents require a certain view width. For this reason it is common to use a different layout size and then scale the contents to fit within the actual view.</p>
<p>If this property is set to a valid size, this size is used for all layout needs instead of the size of the viewport.</p>
<p>Setting an invalid size, makes the page fall back to using the viewport size for layout.</p>
<p>This property was introduced in Qt 4.6.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>preferredContentsSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPreferredContentsSize</b></span> ( const QSize &amp; <i>size</i> ) const</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#viewportSize-prop">viewportSize</a>.</p>
<!-- @@@preferredContentsSize -->
<!-- $$$selectedHtml-prop$$$selectedHtml -->
<h3 class="fn"><a name="selectedHtml-prop"></a><span class="name">selectedHtml</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the HTML currently selected.</p>
<p>By default, this property contains an empty string.</p>
<p>This property was introduced in Qt 4.8.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedHtml</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#selectionChanged">selectionChanged</a>() and <a href="qwebpage.html#selectedText-prop">selectedText</a>().</p>
<!-- @@@selectedHtml -->
<!-- $$$selectedText-prop$$$selectedText -->
<h3 class="fn"><a name="selectedText-prop"></a><span class="name">selectedText</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the text currently selected.</p>
<p>By default, this property contains an empty string.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedText</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#selectionChanged">selectionChanged</a>() and <a href="qwebpage.html#selectedHtml-prop">selectedHtml</a>().</p>
<!-- @@@selectedText -->
<!-- $$$viewportSize-prop$$$viewportSize$$$setViewportSizeconstQSize& -->
<h3 class="fn"><a name="viewportSize-prop"></a><span class="name">viewportSize</span> : <span class="type"><a href="qsize.html">QSize</a></span></h3>
<p>This property holds the size of the viewport.</p>
<p>The size affects for example the visibility of scrollbars if the document is larger than the viewport.</p>
<p>By default, for a newly-created Web page, this property contains a size with zero width and height.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>viewportSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewportSize</b></span> ( const QSize &amp; <i>size</i> ) const</td></tr>
</table>
<p><b>See also </b><a href="qwebframe.html#render">QWebFrame::render</a>() and <a href="qwebpage.html#preferredContentsSize-prop">preferredContentsSize</a>.</p>
<!-- @@@viewportSize -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QWebPage[overload1]$$$QWebPageQObject* -->
<h3 class="fn"><a name="QWebPage"></a>QWebPage::<span class="name">QWebPage</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an empty <a href="qwebpage.html">QWebPage</a> with parent <i>parent</i>.</p>
<!-- @@@QWebPage -->
<!-- $$$~QWebPage[overload1]$$$~QWebPage -->
<h3 class="fn"><a name="dtor.QWebPage"></a>QWebPage::<span class="name">~QWebPage</span> ()</h3>
<p>Destroys the web page.</p>
<!-- @@@~QWebPage -->
<!-- $$$acceptNavigationRequest[overload1]$$$acceptNavigationRequestQWebFrame*constQNetworkRequest&NavigationType -->
<h3 class="fn"><a name="acceptNavigationRequest"></a><span class="type">bool</span> QWebPage::<span class="name">acceptNavigationRequest</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, const <span class="type"><a href="qnetworkrequest.html">QNetworkRequest</a></span> &amp; <i>request</i>, <span class="type"><a href="qwebpage.html#NavigationType-enum">NavigationType</a></span> <i>type</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever <a href="qwebpage.html#ErrorDomain-enum">WebKit</a> requests to navigate <i>frame</i> to the resource specified by <i>request</i> by means of the specified navigation type <i>type</i>.</p>
<p>If <i>frame</i> is a null pointer then navigation to a new window is requested. If the request is accepted <a href="qwebpage.html#createWindow">createWindow</a>() will be called.</p>
<p>The default implementation interprets the page's <a href="qwebpage.html#linkDelegationPolicy-prop">linkDelegationPolicy</a> and emits linkClicked accordingly or returns true to let <a href="qwebpage.html">QWebPage</a> handle the navigation itself.</p>
<p><b>See also </b><a href="qwebpage.html#createWindow">createWindow</a>().</p>
<!-- @@@acceptNavigationRequest -->
<!-- $$$action[overload1]$$$actionWebAction -->
<h3 class="fn"><a name="action"></a><span class="type"><a href="qaction.html">QAction</a></span> * QWebPage::<span class="name">action</span> ( <span class="type"><a href="qwebpage.html#WebAction-enum">WebAction</a></span> <i>action</i> ) const</h3>
<p>Returns a <a href="qaction.html">QAction</a> for the specified <a href="qwebpage.html#WebAction-enum">WebAction</a> <i>action</i>.</p>
<p>The action is owned by the <a href="qwebpage.html">QWebPage</a> but you can customize the look by changing its properties.</p>
<p><a href="qwebpage.html">QWebPage</a> also takes care of implementing the action, so that upon triggering the corresponding action is performed on the page.</p>
<p><b>See also </b><a href="qwebpage.html#triggerAction">triggerAction</a>().</p>
<!-- @@@action -->
<!-- $$$applicationCacheQuotaExceeded[overload1]$$$applicationCacheQuotaExceededQWebSecurityOrigin*quint64 -->
<h3 class="fn"><a name="applicationCacheQuotaExceeded"></a><span class="type">void</span> QWebPage::<span class="name">applicationCacheQuotaExceeded</span> ( <span class="type"><a href="qwebsecurityorigin.html">QWebSecurityOrigin</a></span> * <i>origin</i>, <span class="type"><a href="qtglobal.html#quint64-typedef">quint64</a></span> <i>defaultOriginQuota</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the web site is asking to store data to the application cache database databaseName and the quota allocated to that web site is exceeded.</p>
<!-- @@@applicationCacheQuotaExceeded -->
<!-- $$$bytesReceived[overload1]$$$bytesReceived -->
<h3 class="fn"><a name="bytesReceived"></a><span class="type"><a href="qtglobal.html#quint64-typedef">quint64</a></span> QWebPage::<span class="name">bytesReceived</span> () const</h3>
<p>Returns the number of bytes that were received from the network to render the current page.</p>
<p><b>See also </b><a href="qwebpage.html#totalBytes">totalBytes</a>() and <a href="qwebpage.html#loadProgress">loadProgress</a>().</p>
<!-- @@@bytesReceived -->
<!-- $$$chooseFile[overload1]$$$chooseFileQWebFrame*constQString& -->
<h3 class="fn"><a name="chooseFile"></a><span class="type"><a href="qstring.html">QString</a></span> QWebPage::<span class="name">chooseFile</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>parentFrame</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>suggestedFile</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called when the web content requests a file name, for example as a result of the user clicking on a &quot;file upload&quot; button in a HTML form.</p>
<p>A suggested filename may be provided in <i>suggestedFile</i>. The frame originating the request is provided as <i>parentFrame</i>.</p>
<p><b>See also </b><a href="qwebpage.html#Extension-enum">ChooseMultipleFilesExtension</a>.</p>
<!-- @@@chooseFile -->
<!-- $$$contentsChanged[overload1]$$$contentsChanged -->
<h3 class="fn"><a name="contentsChanged"></a><span class="type">void</span> QWebPage::<span class="name">contentsChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the text in form elements changes as well as other editable content.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebpage.html#contentEditable-prop">contentEditable</a>, <a href="qwebpage.html#modified-prop">modified</a>, <a href="qwebframe.html#toHtml">QWebFrame::toHtml</a>(), and <a href="qwebframe.html#toPlainText">QWebFrame::toPlainText</a>().</p>
<!-- @@@contentsChanged -->
<!-- $$$createPlugin[overload1]$$$createPluginconstQString&constQUrl&constQStringList&constQStringList& -->
<h3 class="fn"><a name="createPlugin"></a><span class="type"><a href="qobject.html">QObject</a></span> * QWebPage::<span class="name">createPlugin</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>classid</i>, const <span class="type"><a href="qurl.html">QUrl</a></span> &amp; <i>url</i>, const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>paramNames</i>, const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>paramValues</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever <a href="qwebpage.html#ErrorDomain-enum">WebKit</a> encounters a HTML object element with type &quot;application/x-qt-plugin&quot;. It is called regardless of the value of <a href="qwebsettings.html#WebAttribute-enum">QWebSettings::PluginsEnabled</a>. The <i>classid</i>, <i>url</i>, <i>paramNames</i> and <i>paramValues</i> correspond to the HTML object element attributes and child elements to configure the embeddable object.</p>
<!-- @@@createPlugin -->
<!-- $$$createStandardContextMenu[overload1]$$$createStandardContextMenu -->
<h3 class="fn"><a name="createStandardContextMenu"></a><span class="type"><a href="qmenu.html">QMenu</a></span> * QWebPage::<span class="name">createStandardContextMenu</span> ()</h3>
<p>This function creates the standard context menu which is shown when the user clicks on the web page with the right mouse button. It is called from the default contextMenuEvent() handler. The popup menu's ownership is transferred to the caller.</p>
<p>This function was introduced in Qt 4.5.</p>
<!-- @@@createStandardContextMenu -->
<!-- $$$createWindow[overload1]$$$createWindowWebWindowType -->
<h3 class="fn"><a name="createWindow"></a><span class="type">QWebPage</span> * QWebPage::<span class="name">createWindow</span> ( <span class="type"><a href="qwebpage.html#WebWindowType-enum">WebWindowType</a></span> <i>type</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever <a href="qwebpage.html#ErrorDomain-enum">WebKit</a> wants to create a new window of the given <i>type</i>, for example when a JavaScript program requests to open a document in a new window.</p>
<p>If the new window can be created, the new window's <a href="qwebpage.html">QWebPage</a> is returned; otherwise a null pointer is returned.</p>
<p>If the view associated with the web page is a <a href="qwebview.html">QWebView</a> object, then the default implementation forwards the request to <a href="qwebview.html">QWebView</a>'s createWindow() function; otherwise it returns a null pointer.</p>
<p>If <i>type</i> is <a href="qwebpage.html#WebWindowType-enum">WebModalDialog</a>, the application must call setWindowModality(<a href="qt.html#WindowModality-enum">Qt::ApplicationModal</a>) on the new window.</p>
<p><b>Note:</b> In the cases when the window creation is being triggered by JavaScript, apart from reimplementing this method application must also set the JavaScriptCanOpenWindows attribute of <a href="qwebsettings.html">QWebSettings</a> to true in order for it to get called.</p>
<p><b>See also </b><a href="qwebpage.html#acceptNavigationRequest">acceptNavigationRequest</a>() and <a href="qwebview.html#createWindow">QWebView::createWindow</a>().</p>
<!-- @@@createWindow -->
<!-- $$$currentFrame[overload1]$$$currentFrame -->
<h3 class="fn"><a name="currentFrame"></a><span class="type"><a href="qwebframe.html">QWebFrame</a></span> * QWebPage::<span class="name">currentFrame</span> () const</h3>
<p>Returns the frame currently active.</p>
<p><b>See also </b><a href="qwebpage.html#mainFrame">mainFrame</a>() and <a href="qwebpage.html#frameCreated">frameCreated</a>().</p>
<!-- @@@currentFrame -->
<!-- $$$databaseQuotaExceeded[overload1]$$$databaseQuotaExceededQWebFrame*QString -->
<h3 class="fn"><a name="databaseQuotaExceeded"></a><span class="type">void</span> QWebPage::<span class="name">databaseQuotaExceeded</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, <span class="type"><a href="qstring.html">QString</a></span> <i>databaseName</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the web site shown in <i>frame</i> is asking to store data to the database <i>databaseName</i> and the quota allocated to that web site is exceeded.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebdatabase.html">QWebDatabase</a>.</p>
<!-- @@@databaseQuotaExceeded -->
<!-- $$$downloadRequested[overload1]$$$downloadRequestedconstQNetworkRequest& -->
<h3 class="fn"><a name="downloadRequested"></a><span class="type">void</span> QWebPage::<span class="name">downloadRequested</span> ( const <span class="type"><a href="qnetworkrequest.html">QNetworkRequest</a></span> &amp; <i>request</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user decides to download a link. The url of the link as well as additional meta-information is contained in <i>request</i>.</p>
<p><b>See also </b><a href="qwebpage.html#unsupportedContent">unsupportedContent</a>().</p>
<!-- @@@downloadRequested -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QWebPage::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>ev</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$extension[overload1]$$$extensionExtensionconstExtensionOption*ExtensionReturn* -->
<h3 class="fn"><a name="extension"></a><span class="type">bool</span> QWebPage::<span class="name">extension</span> ( <span class="type"><a href="qwebpage.html#Extension-enum">Extension</a></span> <i>extension</i>, const <span class="type"><a href="qwebpage-extensionoption.html">ExtensionOption</a></span> * <i>option</i> = 0, <span class="type"><a href="qwebpage-extensionreturn.html">ExtensionReturn</a></span> * <i>output</i> = 0 )<tt> [virtual]</tt></h3>
<p>This virtual function can be reimplemented in a <a href="qwebpage.html">QWebPage</a> subclass to provide support for extensions. The <i>option</i> argument is provided as input to the extension; the output results can be stored in <i>output</i>.</p>
<p>The behavior of this function is determined by <i>extension</i>. The <i>option</i> and <i>output</i> values are typically casted to the corresponding types (for example, <a href="qwebpage-choosemultiplefilesextensionoption.html">ChooseMultipleFilesExtensionOption</a> and <a href="qwebpage-choosemultiplefilesextensionreturn.html">ChooseMultipleFilesExtensionReturn</a> for <a href="qwebpage.html#Extension-enum">ChooseMultipleFilesExtension</a>).</p>
<p>You can call <a href="qwebpage.html#supportsExtension">supportsExtension</a>() to check if an extension is supported by the page.</p>
<p>Returns true if the extension was called successfully; otherwise returns false.</p>
<p><b>See also </b><a href="qwebpage.html#supportsExtension">supportsExtension</a>() and <a href="qwebpage.html#Extension-enum">Extension</a>.</p>
<!-- @@@extension -->
<!-- $$$featurePermissionRequestCanceled[overload1]$$$featurePermissionRequestCanceledQWebFrame*QWebPage::Feature -->
<h3 class="fn"><a name="featurePermissionRequestCanceled"></a><span class="type">void</span> QWebPage::<span class="name">featurePermissionRequestCanceled</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, <span class="type"><a href="qwebpage.html#Feature-enum">QWebPage::Feature</a></span> <i>feature</i> )<tt> [signal]</tt></h3>
<!-- @@@featurePermissionRequestCanceled -->
<!-- $$$featurePermissionRequested[overload1]$$$featurePermissionRequestedQWebFrame*QWebPage::Feature -->
<h3 class="fn"><a name="featurePermissionRequested"></a><span class="type">void</span> QWebPage::<span class="name">featurePermissionRequested</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, <span class="type"><a href="qwebpage.html#Feature-enum">QWebPage::Feature</a></span> <i>feature</i> )<tt> [signal]</tt></h3>
<!-- @@@featurePermissionRequested -->
<!-- $$$findText[overload1]$$$findTextconstQString&FindFlags -->
<h3 class="fn"><a name="findText"></a><span class="type">bool</span> QWebPage::<span class="name">findText</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>subString</i>, <span class="type"><a href="qwebpage.html#FindFlag-enum">FindFlags</a></span> <i>options</i> = 0 )</h3>
<p>Finds the specified string, <i>subString</i>, in the page, using the given <i>options</i>.</p>
<p>If the <a href="qwebpage.html#FindFlag-enum">HighlightAllOccurrences</a> flag is passed, the function will highlight all occurrences that exist in the page. All subsequent calls will extend the highlight, rather than replace it, with occurrences of the new string.</p>
<p>If the <a href="qwebpage.html#FindFlag-enum">HighlightAllOccurrences</a> flag is not passed, the function will select an occurrence and all subsequent calls will replace the current occurrence with the next one.</p>
<p>To clear the selection, just pass an empty string.</p>
<p>Returns true if <i>subString</i> was found; otherwise returns false.</p>
<!-- @@@findText -->
<!-- $$$focusNextPrevChild[overload1]$$$focusNextPrevChildbool -->
<h3 class="fn"><a name="focusNextPrevChild"></a><span class="type">bool</span> QWebPage::<span class="name">focusNextPrevChild</span> ( <span class="type">bool</span> <i>next</i> )</h3>
<p>Similar to <a href="qwidget.html#focusNextPrevChild">QWidget::focusNextPrevChild</a>() it focuses the next focusable web element if <i>next</i> is true; otherwise the previous element is focused.</p>
<p>Returns true if it can find a new focusable element, or false if it can't.</p>
<!-- @@@focusNextPrevChild -->
<!-- $$$frameAt[overload1]$$$frameAtconstQPoint& -->
<h3 class="fn"><a name="frameAt"></a><span class="type"><a href="qwebframe.html">QWebFrame</a></span> * QWebPage::<span class="name">frameAt</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> ) const</h3>
<p>Returns the frame at the given point <i>pos</i>, or 0 if there is no frame at that position.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebpage.html#mainFrame">mainFrame</a>() and <a href="qwebpage.html#currentFrame">currentFrame</a>().</p>
<!-- @@@frameAt -->
<!-- $$$frameCreated[overload1]$$$frameCreatedQWebFrame* -->
<h3 class="fn"><a name="frameCreated"></a><span class="type">void</span> QWebPage::<span class="name">frameCreated</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the page creates a new <i>frame</i>.</p>
<p><b>See also </b><a href="qwebpage.html#currentFrame">currentFrame</a>().</p>
<!-- @@@frameCreated -->
<!-- $$$geometryChangeRequested[overload1]$$$geometryChangeRequestedconstQRect& -->
<h3 class="fn"><a name="geometryChangeRequested"></a><span class="type">void</span> QWebPage::<span class="name">geometryChangeRequested</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>geom</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the document wants to change the position and size of the page to <i>geom</i>. This can happen for example through JavaScript.</p>
<!-- @@@geometryChangeRequested -->
<!-- $$$history[overload1]$$$history -->
<h3 class="fn"><a name="history"></a><span class="type"><a href="qwebhistory.html">QWebHistory</a></span> * QWebPage::<span class="name">history</span> () const</h3>
<p>Returns a pointer to the view's history of navigated web pages.</p>
<!-- @@@history -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QWebPage::<span class="name">inputMethodQuery</span> ( <span class="type"><a href="qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a></span> <i>property</i> ) const</h3>
<p>This method is used by the input method to query a set of properties of the page to be able to support complex input method operations as support for surrounding text and reconversions.</p>
<p><i>property</i> specifies which property is queried.</p>
<p><b>See also </b><a href="qwidget.html#inputMethodEvent">QWidget::inputMethodEvent</a>(), <a href="qinputmethodevent.html">QInputMethodEvent</a>, and <a href="qinputcontext.html">QInputContext</a>.</p>
<!-- @@@inputMethodQuery -->
<!-- $$$javaScriptAlert[overload1]$$$javaScriptAlertQWebFrame*constQString& -->
<h3 class="fn"><a name="javaScriptAlert"></a><span class="type">void</span> QWebPage::<span class="name">javaScriptAlert</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>msg</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever a JavaScript program running inside <i>frame</i> calls the alert() function with the message <i>msg</i>.</p>
<p>The default implementation shows the message, <i>msg</i>, with QMessageBox::information.</p>
<!-- @@@javaScriptAlert -->
<!-- $$$javaScriptConfirm[overload1]$$$javaScriptConfirmQWebFrame*constQString& -->
<h3 class="fn"><a name="javaScriptConfirm"></a><span class="type">bool</span> QWebPage::<span class="name">javaScriptConfirm</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>msg</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever a JavaScript program running inside <i>frame</i> calls the confirm() function with the message, <i>msg</i>. Returns true if the user confirms the message; otherwise returns false.</p>
<p>The default implementation executes the query using QMessageBox::information with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a> and <a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a> buttons.</p>
<!-- @@@javaScriptConfirm -->
<!-- $$$javaScriptConsoleMessage[overload1]$$$javaScriptConsoleMessageconstQString&intconstQString& -->
<h3 class="fn"><a name="javaScriptConsoleMessage"></a><span class="type">void</span> QWebPage::<span class="name">javaScriptConsoleMessage</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>message</i>, <span class="type">int</span> <i>lineNumber</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>sourceID</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever a JavaScript program tries to print a <i>message</i> to the web browser's console.</p>
<p>For example in case of evaluation errors the source URL may be provided in <i>sourceID</i> as well as the <i>lineNumber</i>.</p>
<p>The default implementation prints nothing.</p>
<!-- @@@javaScriptConsoleMessage -->
<!-- $$$javaScriptPrompt[overload1]$$$javaScriptPromptQWebFrame*constQString&constQString&QString* -->
<h3 class="fn"><a name="javaScriptPrompt"></a><span class="type">bool</span> QWebPage::<span class="name">javaScriptPrompt</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>msg</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>defaultValue</i>, <span class="type"><a href="qstring.html">QString</a></span> * <i>result</i> )<tt> [virtual protected]</tt></h3>
<p>This function is called whenever a JavaScript program running inside <i>frame</i> tries to prompt the user for input. The program may provide an optional message, <i>msg</i>, as well as a default value for the input in <i>defaultValue</i>.</p>
<p>If the prompt was cancelled by the user the implementation should return false; otherwise the result should be written to <i>result</i> and true should be returned. If the prompt was not cancelled by the user, the implementation should return true and the result string must not be null.</p>
<p>The default implementation uses <a href="qinputdialog.html#getText">QInputDialog::getText</a>().</p>
<!-- @@@javaScriptPrompt -->
<!-- $$$linkClicked[overload1]$$$linkClickedconstQUrl& -->
<h3 class="fn"><a name="linkClicked"></a><span class="type">void</span> QWebPage::<span class="name">linkClicked</span> ( const <span class="type"><a href="qurl.html">QUrl</a></span> &amp; <i>url</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the user clicks on a link and the page's <a href="qwebpage.html#linkDelegationPolicy-prop">linkDelegationPolicy</a> property is set to delegate the link handling for the specified <i>url</i>.</p>
<p>By default no links are delegated and are handled by <a href="qwebpage.html">QWebPage</a> instead.</p>
<p><b>Note:</b> This signal possibly won't be emitted for clicked links which use JavaScript to trigger navigation.</p>
<p><b>See also </b><a href="qwebpage.html#linkHovered">linkHovered</a>().</p>
<!-- @@@linkClicked -->
<!-- $$$linkHovered[overload1]$$$linkHoveredconstQString&constQString&constQString& -->
<h3 class="fn"><a name="linkHovered"></a><span class="type">void</span> QWebPage::<span class="name">linkHovered</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>link</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>textContent</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the mouse hovers over a link.</p>
<p><i>link</i> contains the link url. <i>title</i> is the link element's title, if it is specified in the markup. <i>textContent</i> provides text within the link element, e.g&#x2e;, text inside an HTML anchor tag.</p>
<p>When the mouse leaves the link element the signal is emitted with empty parameters.</p>
<p><b>See also </b><a href="qwebpage.html#linkClicked">linkClicked</a>().</p>
<!-- @@@linkHovered -->
<!-- $$$loadFinished[overload1]$$$loadFinishedbool -->
<h3 class="fn"><a name="loadFinished"></a><span class="type">void</span> QWebPage::<span class="name">loadFinished</span> ( <span class="type">bool</span> <i>ok</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the page finishes loading content. This signal is independant of script execution or page rendering. <i>ok</i> will indicate whether the load was successful or any error occurred.</p>
<p><b>See also </b><a href="qwebpage.html#loadStarted">loadStarted</a>() and <a href="qwebpage.html#Extension-enum">ErrorPageExtension</a>.</p>
<!-- @@@loadFinished -->
<!-- $$$loadProgress[overload1]$$$loadProgressint -->
<h3 class="fn"><a name="loadProgress"></a><span class="type">void</span> QWebPage::<span class="name">loadProgress</span> ( <span class="type">int</span> <i>progress</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the global progress status changes. The current value is provided by <i>progress</i> and scales from 0 to 100, which is the default range of <a href="qprogressbar.html">QProgressBar</a>. It accumulates changes from all the child frames.</p>
<p><b>See also </b><a href="qwebpage.html#bytesReceived">bytesReceived</a>().</p>
<!-- @@@loadProgress -->
<!-- $$$loadStarted[overload1]$$$loadStarted -->
<h3 class="fn"><a name="loadStarted"></a><span class="type">void</span> QWebPage::<span class="name">loadStarted</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when a page starts loading content.</p>
<p><b>See also </b><a href="qwebpage.html#loadFinished">loadFinished</a>().</p>
<!-- @@@loadStarted -->
<!-- $$$mainFrame[overload1]$$$mainFrame -->
<h3 class="fn"><a name="mainFrame"></a><span class="type"><a href="qwebframe.html">QWebFrame</a></span> * QWebPage::<span class="name">mainFrame</span> () const</h3>
<p>Returns the main frame of the page.</p>
<p>The main frame provides access to the hierarchy of sub-frames and is also needed if you want to explicitly render a web page into a given painter.</p>
<p><b>See also </b><a href="qwebpage.html#currentFrame">currentFrame</a>().</p>
<!-- @@@mainFrame -->
<!-- $$$menuBarVisibilityChangeRequested[overload1]$$$menuBarVisibilityChangeRequestedbool -->
<h3 class="fn"><a name="menuBarVisibilityChangeRequested"></a><span class="type">void</span> QWebPage::<span class="name">menuBarVisibilityChangeRequested</span> ( <span class="type">bool</span> <i>visible</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the visibility of the menubar in a web browser window that hosts <a href="qwebpage.html">QWebPage</a> should be changed to <i>visible</i>.</p>
<!-- @@@menuBarVisibilityChangeRequested -->
<!-- $$$microFocusChanged[overload1]$$$microFocusChanged -->
<h3 class="fn"><a name="microFocusChanged"></a><span class="type">void</span> QWebPage::<span class="name">microFocusChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when for example the position of the cursor in an editable form element changes. It is used to inform input methods about the new on-screen position where the user is able to enter text. This signal is usually connected to the <a href="qwidget.html#updateMicroFocus">QWidget::updateMicroFocus</a>() slot.</p>
<!-- @@@microFocusChanged -->
<!-- $$$networkAccessManager[overload1]$$$networkAccessManager -->
<h3 class="fn"><a name="networkAccessManager"></a><span class="type"><a href="qnetworkaccessmanager.html">QNetworkAccessManager</a></span> * QWebPage::<span class="name">networkAccessManager</span> () const</h3>
<p>Returns the <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a> that is responsible for serving network requests for this <a href="qwebpage.html">QWebPage</a>.</p>
<p><b>See also </b><a href="qwebpage.html#setNetworkAccessManager">setNetworkAccessManager</a>().</p>
<!-- @@@networkAccessManager -->
<!-- $$$pluginFactory[overload1]$$$pluginFactory -->
<h3 class="fn"><a name="pluginFactory"></a><span class="type"><a href="qwebpluginfactory.html">QWebPluginFactory</a></span> * QWebPage::<span class="name">pluginFactory</span> () const</h3>
<p>Returns the <a href="qwebpluginfactory.html">QWebPluginFactory</a> that is responsible for creating plugins embedded into this <a href="qwebpage.html">QWebPage</a>. If no plugin factory is installed a null pointer is returned.</p>
<p><b>See also </b><a href="qwebpage.html#setPluginFactory">setPluginFactory</a>().</p>
<!-- @@@pluginFactory -->
<!-- $$$printRequested[overload1]$$$printRequestedQWebFrame* -->
<h3 class="fn"><a name="printRequested"></a><span class="type">void</span> QWebPage::<span class="name">printRequested</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the page requests the web browser to print <i>frame</i>, for example through the JavaScript <tt>window.print()</tt> call.</p>
<p><b>See also </b><a href="qwebframe.html#print">QWebFrame::print</a>() and <a href="qprintpreviewdialog.html">QPrintPreviewDialog</a>.</p>
<!-- @@@printRequested -->
<!-- $$$repaintRequested[overload1]$$$repaintRequestedconstQRect& -->
<h3 class="fn"><a name="repaintRequested"></a><span class="type">void</span> QWebPage::<span class="name">repaintRequested</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>dirtyRect</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever this <a href="qwebpage.html">QWebPage</a> should be updated. It's useful when rendering a <a href="qwebpage.html">QWebPage</a> without a <a href="qwebview.html">QWebView</a> or <a href="qgraphicswebview.html">QGraphicsWebView</a>. <i>dirtyRect</i> contains the area that needs to be updated. To paint the <a href="qwebpage.html">QWebPage</a> get the <a href="qwebpage.html#mainFrame">mainFrame</a>() and call the render(<a href="qpainter.html">QPainter</a>*, const <a href="qregion.html">QRegion</a>&amp;) method with the <i>dirtyRect</i> as the second parameter.</p>
<p><b>See also </b><a href="qwebpage.html#mainFrame">mainFrame</a>() and <a href="qwebpage.html#view">view</a>().</p>
<!-- @@@repaintRequested -->
<!-- $$$restoreFrameStateRequested[overload1]$$$restoreFrameStateRequestedQWebFrame* -->
<h3 class="fn"><a name="restoreFrameStateRequested"></a><span class="type">void</span> QWebPage::<span class="name">restoreFrameStateRequested</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the load of <i>frame</i> is finished and the application may now update its state accordingly.</p>
<p>This function was introduced in Qt 4.5.</p>
<!-- @@@restoreFrameStateRequested -->
<!-- $$$saveFrameStateRequested[overload1]$$$saveFrameStateRequestedQWebFrame*QWebHistoryItem* -->
<h3 class="fn"><a name="saveFrameStateRequested"></a><span class="type">void</span> QWebPage::<span class="name">saveFrameStateRequested</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, <span class="type"><a href="qwebhistoryitem.html">QWebHistoryItem</a></span> * <i>item</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted shortly before the history of navigated pages in <i>frame</i> is changed, for example when navigating back in the history.</p>
<p>The provided <a href="qwebhistoryitem.html">QWebHistoryItem</a>, <i>item</i>, holds the history entry of the frame before the change.</p>
<p>A potential use-case for this signal is to store custom data in the <a href="qwebhistoryitem.html">QWebHistoryItem</a> associated to the frame, using <a href="qwebhistoryitem.html#setUserData">QWebHistoryItem::setUserData</a>().</p>
<p>This function was introduced in Qt 4.5.</p>
<!-- @@@saveFrameStateRequested -->
<!-- $$$scrollRequested[overload1]$$$scrollRequestedintintconstQRect& -->
<h3 class="fn"><a name="scrollRequested"></a><span class="type">void</span> QWebPage::<span class="name">scrollRequested</span> ( <span class="type">int</span> <i>dx</i>, <span class="type">int</span> <i>dy</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>rectToScroll</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the content given by <i>rectToScroll</i> needs to be scrolled <i>dx</i> and <i>dy</i> downwards and no view was set.</p>
<p><b>See also </b><a href="qwebpage.html#view">view</a>().</p>
<!-- @@@scrollRequested -->
<!-- $$$selectionChanged[overload1]$$$selectionChanged -->
<h3 class="fn"><a name="selectionChanged"></a><span class="type">void</span> QWebPage::<span class="name">selectionChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the selection changes, either interactively or programmatically (e.g&#x2e; by calling <a href="qwebpage.html#triggerAction">triggerAction</a>() with a selection action).</p>
<p><b>See also </b><a href="qwebpage.html#selectedText-prop">selectedText</a>().</p>
<!-- @@@selectionChanged -->
<!-- $$$setActualVisibleContentRect[overload1]$$$setActualVisibleContentRectconstQRect& -->
<h3 class="fn"><a name="setActualVisibleContentRect"></a><span class="type">void</span> QWebPage::<span class="name">setActualVisibleContentRect</span> ( const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>rect</i> ) const</h3>
<!-- @@@setActualVisibleContentRect -->
<!-- $$$setFeaturePermission[overload1]$$$setFeaturePermissionQWebFrame*FeaturePermissionPolicy -->
<h3 class="fn"><a name="setFeaturePermission"></a><span class="type">void</span> QWebPage::<span class="name">setFeaturePermission</span> ( <span class="type"><a href="qwebframe.html">QWebFrame</a></span> * <i>frame</i>, <span class="type"><a href="qwebpage.html#Feature-enum">Feature</a></span> <i>feature</i>, <span class="type"><a href="qwebpage.html#PermissionPolicy-enum">PermissionPolicy</a></span> <i>policy</i> )</h3>
<!-- @@@setFeaturePermission -->
<!-- $$$setNetworkAccessManager[overload1]$$$setNetworkAccessManagerQNetworkAccessManager* -->
<h3 class="fn"><a name="setNetworkAccessManager"></a><span class="type">void</span> QWebPage::<span class="name">setNetworkAccessManager</span> ( <span class="type"><a href="qnetworkaccessmanager.html">QNetworkAccessManager</a></span> * <i>manager</i> )</h3>
<p>Sets the <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a> <i>manager</i> responsible for serving network requests for this <a href="qwebpage.html">QWebPage</a>.</p>
<p><b>Note:</b> It is currently not supported to change the network access manager after the <a href="qwebpage.html">QWebPage</a> has used it. The results of doing this are undefined.</p>
<p><b>See also </b><a href="qwebpage.html#networkAccessManager">networkAccessManager</a>().</p>
<!-- @@@setNetworkAccessManager -->
<!-- $$$setPluginFactory[overload1]$$$setPluginFactoryQWebPluginFactory* -->
<h3 class="fn"><a name="setPluginFactory"></a><span class="type">void</span> QWebPage::<span class="name">setPluginFactory</span> ( <span class="type"><a href="qwebpluginfactory.html">QWebPluginFactory</a></span> * <i>factory</i> )</h3>
<p>Sets the <a href="qwebpluginfactory.html">QWebPluginFactory</a> <i>factory</i> responsible for creating plugins embedded into this <a href="qwebpage.html">QWebPage</a>.</p>
<p>Note: The plugin factory is only used if the <a href="qwebsettings.html#WebAttribute-enum">QWebSettings::PluginsEnabled</a> attribute is enabled.</p>
<p><b>See also </b><a href="qwebpage.html#pluginFactory">pluginFactory</a>().</p>
<!-- @@@setPluginFactory -->
<!-- $$$setView[overload1]$$$setViewQWidget* -->
<h3 class="fn"><a name="setView"></a><span class="type">void</span> QWebPage::<span class="name">setView</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>view</i> )</h3>
<p>Sets the <i>view</i> that is associated with the web page.</p>
<p><b>See also </b><a href="qwebpage.html#view">view</a>().</p>
<!-- @@@setView -->
<!-- $$$settings[overload1]$$$settings -->
<h3 class="fn"><a name="settings"></a><span class="type"><a href="qwebsettings.html">QWebSettings</a></span> * QWebPage::<span class="name">settings</span> () const</h3>
<p>Returns a pointer to the page's settings object.</p>
<p><b>See also </b><a href="qwebsettings.html#globalSettings">QWebSettings::globalSettings</a>().</p>
<!-- @@@settings -->
<!-- $$$shouldInterruptJavaScript[overload1]$$$shouldInterruptJavaScript -->
<h3 class="fn"><a name="shouldInterruptJavaScript"></a><span class="type">bool</span> QWebPage::<span class="name">shouldInterruptJavaScript</span> ()<tt> [slot]</tt></h3>
<p>This function is called when a JavaScript program is running for a long period of time.</p>
<p>If the user wanted to stop the JavaScript the implementation should return true; otherwise false.</p>
<p>The default implementation executes the query using QMessageBox::information with <a href="qmessagebox.html#StandardButton-enum">QMessageBox::Yes</a> and <a href="qmessagebox.html#StandardButton-enum">QMessageBox::No</a> buttons.</p>
<p><b>Warning:</b> Because of binary compatibility constraints, this function is not virtual. If you want to provide your own implementation in a <a href="qwebpage.html">QWebPage</a> subclass, reimplement the shouldInterruptJavaScript() slot in your subclass instead. <a href="qtwebkit.html">QtWebKit</a> will dynamically detect the slot and call it.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@shouldInterruptJavaScript -->
<!-- $$$statusBarMessage[overload1]$$$statusBarMessageconstQString& -->
<h3 class="fn"><a name="statusBarMessage"></a><span class="type">void</span> QWebPage::<span class="name">statusBarMessage</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the statusbar <i>text</i> is changed by the page.</p>
<!-- @@@statusBarMessage -->
<!-- $$$statusBarVisibilityChangeRequested[overload1]$$$statusBarVisibilityChangeRequestedbool -->
<h3 class="fn"><a name="statusBarVisibilityChangeRequested"></a><span class="type">void</span> QWebPage::<span class="name">statusBarVisibilityChangeRequested</span> ( <span class="type">bool</span> <i>visible</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the visibility of the statusbar in a web browser window that hosts <a href="qwebpage.html">QWebPage</a> should be changed to <i>visible</i>.</p>
<!-- @@@statusBarVisibilityChangeRequested -->
<!-- $$$supportedContentTypes[overload1]$$$supportedContentTypes -->
<h3 class="fn"><a name="supportedContentTypes"></a><span class="type"><a href="qstringlist.html">QStringList</a></span> QWebPage::<span class="name">supportedContentTypes</span> () const</h3>
<p>Returns the list of all content types supported by <a href="qwebpage.html">QWebPage</a>.</p>
<!-- @@@supportedContentTypes -->
<!-- $$$supportsContentType[overload1]$$$supportsContentTypeconstQString& -->
<h3 class="fn"><a name="supportsContentType"></a><span class="type">bool</span> QWebPage::<span class="name">supportsContentType</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>mimeType</i> ) const</h3>
<p>Returns true if <a href="qwebpage.html">QWebPage</a> can handle the given <i>mimeType</i>; otherwise, returns false.</p>
<!-- @@@supportsContentType -->
<!-- $$$supportsExtension[overload1]$$$supportsExtensionExtension -->
<h3 class="fn"><a name="supportsExtension"></a><span class="type">bool</span> QWebPage::<span class="name">supportsExtension</span> ( <span class="type"><a href="qwebpage.html#Extension-enum">Extension</a></span> <i>extension</i> ) const<tt> [virtual]</tt></h3>
<p>This virtual function returns true if the web page supports <i>extension</i>; otherwise false is returned.</p>
<p><b>See also </b><a href="qwebpage.html#extension">extension</a>().</p>
<!-- @@@supportsExtension -->
<!-- $$$swallowContextMenuEvent[overload1]$$$swallowContextMenuEventQContextMenuEvent* -->
<h3 class="fn"><a name="swallowContextMenuEvent"></a><span class="type">bool</span> QWebPage::<span class="name">swallowContextMenuEvent</span> ( <span class="type"><a href="qcontextmenuevent.html">QContextMenuEvent</a></span> * <i>event</i> )</h3>
<p>Filters the context menu event, <i>event</i>, through handlers for scrollbars and custom event handlers in the web page. Returns true if the event was handled; otherwise false.</p>
<p>A web page may swallow a context menu event through a custom event handler, allowing for context menus to be implemented in HTML/JavaScript. This is used by <a href="http://maps.google.com/">Google Maps</a>, for example.</p>
<!-- @@@swallowContextMenuEvent -->
<!-- $$$toolBarVisibilityChangeRequested[overload1]$$$toolBarVisibilityChangeRequestedbool -->
<h3 class="fn"><a name="toolBarVisibilityChangeRequested"></a><span class="type">void</span> QWebPage::<span class="name">toolBarVisibilityChangeRequested</span> ( <span class="type">bool</span> <i>visible</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the visibility of the toolbar in a web browser window that hosts <a href="qwebpage.html">QWebPage</a> should be changed to <i>visible</i>.</p>
<!-- @@@toolBarVisibilityChangeRequested -->
<!-- $$$totalBytes[overload1]$$$totalBytes -->
<h3 class="fn"><a name="totalBytes"></a><span class="type"><a href="qtglobal.html#quint64-typedef">quint64</a></span> QWebPage::<span class="name">totalBytes</span> () const</h3>
<p>Returns the total number of bytes that were received from the network to render the current page, including extra content such as embedded images.</p>
<p><b>See also </b><a href="qwebpage.html#bytesReceived">bytesReceived</a>().</p>
<!-- @@@totalBytes -->
<!-- $$$triggerAction[overload1]$$$triggerActionWebActionbool -->
<h3 class="fn"><a name="triggerAction"></a><span class="type">void</span> QWebPage::<span class="name">triggerAction</span> ( <span class="type"><a href="qwebpage.html#WebAction-enum">WebAction</a></span> <i>action</i>, <span class="type">bool</span> <i>checked</i> = false )<tt> [virtual]</tt></h3>
<p>This function can be called to trigger the specified <i>action</i>. It is also called by <a href="qtwebkit.html">QtWebKit</a> if the user triggers the action, for example through a context menu item.</p>
<p>If <i>action</i> is a checkable action then <i>checked</i> specified whether the action is toggled or not.</p>
<p><b>See also </b><a href="qwebpage.html#action">action</a>().</p>
<!-- @@@triggerAction -->
<!-- $$$undoStack[overload1]$$$undoStack -->
<h3 class="fn"><a name="undoStack"></a><span class="type"><a href="qundostack.html">QUndoStack</a></span> * QWebPage::<span class="name">undoStack</span> () const</h3>
<p>Returns a pointer to the undo stack used for editable content.</p>
<p><b>See also </b><a href="qwebpage.html#modified-prop">modified</a>.</p>
<!-- @@@undoStack -->
<!-- $$$unsupportedContent[overload1]$$$unsupportedContentQNetworkReply* -->
<h3 class="fn"><a name="unsupportedContent"></a><span class="type">void</span> QWebPage::<span class="name">unsupportedContent</span> ( <span class="type"><a href="qnetworkreply.html">QNetworkReply</a></span> * <i>reply</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when <a href="qwebpage.html#ErrorDomain-enum">WebKit</a> cannot handle a link the user navigated to or a web server's response includes a &quot;Content-Disposition&quot; header with the 'attachment' directive. If &quot;Content-Disposition&quot; is present in <i>reply</i>, the web server is indicating that the client should prompt the user to save the content regardless of content-type. See RFC 2616 sections 19.5&#x2e;1 for details about Content-Disposition.</p>
<p>At signal emission time the meta-data of the <a href="qnetworkreply.html">QNetworkReply</a> <i>reply</i> is available.</p>
<p><b>Note:</b> The receiving slot is responsible for deleting the <a href="qnetworkreply.html">QNetworkReply</a> <i>reply</i>.</p>
<p><b>Note:</b> This signal is only emitted if the <a href="qwebpage.html#forwardUnsupportedContent-prop">forwardUnsupportedContent</a> property is set to true.</p>
<p><b>See also </b><a href="qwebpage.html#downloadRequested">downloadRequested</a>().</p>
<!-- @@@unsupportedContent -->
<!-- $$$updatePositionDependentActions[overload1]$$$updatePositionDependentActionsconstQPoint& -->
<h3 class="fn"><a name="updatePositionDependentActions"></a><span class="type">void</span> QWebPage::<span class="name">updatePositionDependentActions</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> )</h3>
<p>Updates the page's actions depending on the position <i>pos</i>. For example if <i>pos</i> is over an image element the <a href="qwebpage.html#WebAction-enum">CopyImageToClipboard</a> action is enabled.</p>
<!-- @@@updatePositionDependentActions -->
<!-- $$$userAgentForUrl[overload1]$$$userAgentForUrlconstQUrl& -->
<h3 class="fn"><a name="userAgentForUrl"></a><span class="type"><a href="qstring.html">QString</a></span> QWebPage::<span class="name">userAgentForUrl</span> ( const <span class="type"><a href="qurl.html">QUrl</a></span> &amp; <i>url</i> ) const<tt> [virtual protected]</tt></h3>
<p>This function is called when a user agent for HTTP requests is needed. You can reimplement this function to dynamically return different user agents for different URLs, based on the <i>url</i> parameter.</p>
<p>The default implementation returns the following value:</p>
<p>&quot;Mozilla/5.0 (%Platform%%Security%%Subplatform%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%&quot;</p>
<p>On mobile platforms such as Symbian S60 and Maemo, &quot;Mobile Safari&quot; is used instead of &quot;Safari&quot;.</p>
<p>In this string the following values are replaced at run-time:</p>
<ul>
<li>%Platform% expands to the windowing system followed by &quot;; &quot; if it is not Windows (e.g&#x2e; &quot;X11; &quot;).</li>
<li>%Security% expands to &quot;N; &quot; if SSL is disabled.</li>
<li>%Subplatform% expands to the operating system version (e.g&#x2e; &quot;Windows NT 6.1&quot; or &quot;Intel Mac OS X 10.5&quot;).</li>
<li>%WebKitVersion% is the version of <a href="qwebpage.html#ErrorDomain-enum">WebKit</a> the application was compiled against.</li>
<li>%AppVersion% expands to <a href="qcoreapplication.html#applicationName-prop">QCoreApplication::applicationName</a>()/<a href="qcoreapplication.html#applicationVersion-prop">QCoreApplication::applicationVersion</a>() if they're set; otherwise defaulting to Qt and the current Qt version.</li>
</ul>
<!-- @@@userAgentForUrl -->
<!-- $$$view[overload1]$$$view -->
<h3 class="fn"><a name="view"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QWebPage::<span class="name">view</span> () const</h3>
<p>Returns the view widget that is associated with the web page.</p>
<p><b>See also </b><a href="qwebpage.html#setView">setView</a>().</p>
<!-- @@@view -->
<!-- $$$viewportAttributesForSize[overload1]$$$viewportAttributesForSizeconstQSize& -->
<h3 class="fn"><a name="viewportAttributesForSize"></a><span class="type"><a href="qwebpage-viewportattributes.html">ViewportAttributes</a></span> QWebPage::<span class="name">viewportAttributesForSize</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>availableSize</i> ) const</h3>
<p>Computes the optimal viewport configuration given the <i>availableSize</i>, when user interface components are disregarded.</p>
<p>The configuration is also dependent on the device screen size which is obtained automatically. For testing purposes the size can be overridden by setting two environment variables QTWEBKIT_DEVICE_WIDTH and QTWEBKIT_DEVICE_HEIGHT, which both needs to be set.</p>
<p>The <a href="qwebpage-viewportattributes.html">ViewportAttributes</a> includes a pixel density ratio, which will also be exposed to the web author though the -webkit-pixel-ratio media feature. This is the ratio between 1 density-independent pixel (DPI) and physical pixels.</p>
<p>A density-independent pixel is equivalent to one physical pixel on a 160 DPI screen, so on our platform assumes that as the baseline density.</p>
<p>The conversion of DIP units to screen pixels is quite simple:</p>
<p>pixels = DIPs * (density / 160).</p>
<p>Thus, on a 240 DPI screen, 1 DIPs would equal 1.5 physical pixels.</p>
<p>An invalid instance will be returned in the case an empty size is passed to the method.</p>
<p><b>Note:</b> The density is automatically obtained from the DPI of the screen where the page is being shown, but as many X11 servers are reporting wrong DPI, it is possible to override it using <a href="qx11info.html#setAppDpiY">QX11Info::setAppDpiY</a>().</p>
<!-- @@@viewportAttributesForSize -->
<!-- $$$viewportChangeRequested[overload1]$$$viewportChangeRequested -->
<h3 class="fn"><a name="viewportChangeRequested"></a><span class="type">void</span> QWebPage::<span class="name">viewportChangeRequested</span> ()<tt> [signal]</tt></h3>
<p>Page authors can provide the supplied values by using the viewport meta tag. More information about this can be found at <a href="http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/usingtheviewport/usingtheviewport.html">Safari Reference Library: Using the Viewport Meta Tag</a>.</p>
<p>This function was introduced in Qt 4.8.</p>
<p><b>See also </b><a href="qwebpage-viewportattributes.html">QWebPage::ViewportAttributes</a>, <a href="qwebpage.html#preferredContentsSize-prop">setPreferredContentsSize</a>(), and <a href="qgraphicsitem.html#setScale">QGraphicsWebView::setScale</a>().</p>
<!-- @@@viewportChangeRequested -->
<!-- $$$windowCloseRequested[overload1]$$$windowCloseRequested -->
<h3 class="fn"><a name="windowCloseRequested"></a><span class="type">void</span> QWebPage::<span class="name">windowCloseRequested</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the page requests the web browser window to be closed, for example through the JavaScript <tt>window.close()</tt> call.</p>
<!-- @@@windowCloseRequested -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$qWebKitMajorVersion[overload1]$$$qWebKitMajorVersion -->
<h3 class="fn"><a name="qWebKitMajorVersion"></a><span class="type">int</span> <span class="name">qWebKitMajorVersion</span> ()</h3>
<p>Returns the 'major' version number of WebKit at run-time as an integer (for example, 531). This is the version of WebKit the application was compiled against.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebpage.html#qWebKitVersion">qWebKitVersion</a>().</p>
<!-- @@@qWebKitMajorVersion -->
<!-- $$$qWebKitMinorVersion[overload1]$$$qWebKitMinorVersion -->
<h3 class="fn"><a name="qWebKitMinorVersion"></a><span class="type">int</span> <span class="name">qWebKitMinorVersion</span> ()</h3>
<p>Returns the 'minor' version number of WebKit at run-time as an integer (for example, 3). This is the version of WebKit the application was compiled against.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebpage.html#qWebKitVersion">qWebKitVersion</a>().</p>
<!-- @@@qWebKitMinorVersion -->
<!-- $$$qWebKitVersion[overload1]$$$qWebKitVersion -->
<h3 class="fn"><a name="qWebKitVersion"></a><span class="type"><a href="qstring.html">QString</a></span> <span class="name">qWebKitVersion</span> ()</h3>
<p>Returns the version number of WebKit at run-time as a string (for example, &quot;531.3&quot;).</p>
<p>This version is commonly used in WebKit based browsers as part of the user agent string. Web servers and JavaScript might use it to identify the presence of certain WebKit engine features and behaviour.</p>
<p>The evolution of this version is bound to the releases of Apple's Safari browser. For a version specific to the <a href="qtwebkit.html">QtWebKit</a> library, see <a href="qwebpage.html#QTWEBKIT_VERSION">QTWEBKIT_VERSION</a></p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebpage.html#userAgentForUrl">QWebPage::userAgentForUrl</a>().</p>
<!-- @@@qWebKitVersion -->
</div>
<div class="macros">
<h2>Macro Documentation</h2>
<!-- $$$QTWEBKIT_VERSION[overload1]$$$QTWEBKIT_VERSION -->
<h3 class="fn"><a name="QTWEBKIT_VERSION"></a><span class="name">QTWEBKIT_VERSION</span></h3>
<p>This macro expands a numeric value of the form 0xMMNNPP (MM = major, NN = minor, PP = patch) that specifies <a href="qtwebkit.html">QtWebKit</a>'s version number. For example, if you compile your application against <a href="qtwebkit.html">QtWebKit</a> 2.1&#x2e;2, the QTWEBKIT_VERSION macro will expand to 0x020102.</p>
<p>You can use QTWEBKIT_VERSION to use the latest <a href="qtwebkit.html">QtWebKit</a> API where available.</p>
<p><b>See also </b><a href="qtglobal.html#QT_VERSION">QT_VERSION</a>.</p>
<!-- @@@QTWEBKIT_VERSION -->
<!-- $$$QTWEBKIT_VERSION_CHECK[overload1]$$$QTWEBKIT_VERSION_CHECK -->
<h3 class="fn"><a name="QTWEBKIT_VERSION_CHECK"></a><span class="name">QTWEBKIT_VERSION_CHECK</span></h3>
<p>Turns the major, minor and patch numbers of a version into an integer, 0xMMNNPP (MM = major, NN = minor, PP = patch). This can be compared with another similarly processed version id, for example in a preprocessor statement:</p>
<pre class="cpp"> <span class="preprocessor">#if QTWEBKIT_VERSION &gt;= QTWEBKIT_VERSION_CHECK(2, 1, 0)</span>
 <span class="comment">// code to use API new in QtWebKit 2.1.0</span>
 <span class="preprocessor">#endif</span></pre>
<!-- @@@QTWEBKIT_VERSION_CHECK -->
<!-- $$$QTWEBKIT_VERSION_STR[overload1]$$$QTWEBKIT_VERSION_STR -->
<h3 class="fn"><a name="QTWEBKIT_VERSION_STR"></a><span class="name">QTWEBKIT_VERSION_STR</span></h3>
<p>This macro expands to a string that specifies <a href="qtwebkit.html">QtWebKit</a>'s version number (for example, &quot;2.1&#x2e;2&quot;). This is the version against which the application is compiled.</p>
<p><b>See also </b><a href="qwebpage.html#QTWEBKIT_VERSION">QTWEBKIT_VERSION</a>.</p>
<!-- @@@QTWEBKIT_VERSION_STR -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      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.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      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. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>