Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 7010

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" />
<!-- qwebframe.cpp -->
  <title>Qt 4.8: QWebFrame 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>QWebFrame</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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QWebFrame Class Reference</h1>
<!-- $$$QWebFrame-brief -->
<p>The QWebFrame class represents a frame in a web page. <a href="#details">More...</a></p>
<!-- @@@QWebFrame -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QWebFrame&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="qwebframe-members.html">List of all members, including inherited members</a></li>
<li><a href="qwebframe-obsolete.html">Obsolete members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#RenderLayer-enum">RenderLayer</a></b> { ContentsLayer, ScrollBarLayer, PanIconLayer, AllLayers }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qwebframe.html#baseUrl-prop">baseUrl</a></b> : const QUrl</li>
<li class="fn"><b><a href="qwebframe.html#contentsSize-prop">contentsSize</a></b> : const QSize</li>
<li class="fn"><b><a href="qwebframe.html#focus-prop">focus</a></b> : const bool</li>
<li class="fn"><b><a href="qwebframe.html#icon-prop">icon</a></b> : const QIcon</li>
<li class="fn"><b><a href="qwebframe.html#requestedUrl-prop">requestedUrl</a></b> : const QUrl</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qwebframe.html#scrollPosition-prop">scrollPosition</a></b> : QPoint</li>
<li class="fn"><b><a href="qwebframe.html#title-prop">title</a></b> : const QString</li>
<li class="fn"><b><a href="qwebframe.html#url-prop">url</a></b> : QUrl</li>
<li class="fn"><b><a href="qwebframe.html#zoomFactor-prop">zoomFactor</a></b> : qreal</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"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#addToJavaScriptWindowObject">addToJavaScriptWindowObject</a></b> ( const QString &amp; <i>name</i>, QObject * <i>object</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#addToJavaScriptWindowObject-2">addToJavaScriptWindowObject</a></b> ( const QString &amp; <i>name</i>, QObject * <i>object</i>, QScriptEngine::ValueOwnership <i>own</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#baseUrl-prop">baseUrl</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QWebFrame *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#childFrames">childFrames</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#contentsSize-prop">contentsSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElement </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#documentElement">documentElement</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElementCollection </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#findAllElements">findAllElements</a></b> ( const QString &amp; <i>selectorQuery</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebElement </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#findFirstElement">findFirstElement</a></b> ( const QString &amp; <i>selectorQuery</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#frameName">frameName</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#geometry">geometry</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#focus-prop">hasFocus</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebHitTestResult </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#hitTestContent">hitTestContent</a></b> ( const QPoint &amp; <i>pos</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#icon-prop">icon</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#load">load</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="qwebframe.html#load-2">load</a></b> ( const QNetworkRequest &amp; <i>req</i>, QNetworkAccessManager::Operation <i>operation</i> = QNetworkAccessManager::GetOperation, const QByteArray &amp; <i>body</i> = QByteArray() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMultiMap&lt;QString, QString&gt; </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#metaData">metaData</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebPage * </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#page">page</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebFrame * </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#parentFrame">parentFrame</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#pos">pos</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#render">render</a></b> ( QPainter * <i>painter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#render-2">render</a></b> ( QPainter * <i>painter</i>, const QRegion &amp; <i>clip</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#render-3">render</a></b> ( QPainter * <i>painter</i>, RenderLayer <i>layer</i>, const QRegion &amp; <i>clip</i> = QRegion() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#renderTreeDump">renderTreeDump</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#requestedUrl-prop">requestedUrl</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scroll">scroll</a></b> ( int <i>dx</i>, int <i>dy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollBarGeometry">scrollBarGeometry</a></b> ( Qt::Orientation <i>orientation</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollBarMaximum">scrollBarMaximum</a></b> ( Qt::Orientation <i>orientation</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollBarMinimum">scrollBarMinimum</a></b> ( Qt::Orientation <i>orientation</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::ScrollBarPolicy </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollBarPolicy">scrollBarPolicy</a></b> ( Qt::Orientation <i>orientation</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollBarValue">scrollBarValue</a></b> ( Qt::Orientation <i>orientation</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollPosition-prop">scrollPosition</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollToAnchor">scrollToAnchor</a></b> ( const QString &amp; <i>anchor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSecurityOrigin </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#securityOrigin">securityOrigin</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#setContent">setContent</a></b> ( const QByteArray &amp; <i>data</i>, const QString &amp; <i>mimeType</i> = QString(), const QUrl &amp; <i>baseUrl</i> = QUrl() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#setFocus">setFocus</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#setHtml">setHtml</a></b> ( const QString &amp; <i>html</i>, const QUrl &amp; <i>baseUrl</i> = QUrl() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#setScrollBarPolicy">setScrollBarPolicy</a></b> ( Qt::Orientation <i>orientation</i>, Qt::ScrollBarPolicy <i>policy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#setScrollBarValue">setScrollBarValue</a></b> ( Qt::Orientation <i>orientation</i>, int <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#scrollPosition-prop">setScrollPosition</a></b> ( const QPoint &amp; <i>pos</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#setTextSizeMultiplier">setTextSizeMultiplier</a></b> ( qreal <i>factor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#url-prop">setUrl</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="qwebframe.html#zoomFactor-prop">setZoomFactor</a></b> ( qreal <i>factor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#textSizeMultiplier">textSizeMultiplier</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#title-prop">title</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#toHtml">toHtml</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#toPlainText">toPlainText</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#url-prop">url</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#zoomFactor-prop">zoomFactor</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="qwebframe.html#event">event</a></b> ( QEvent * <i>e</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"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#evaluateJavaScript">evaluateJavaScript</a></b> ( const QString &amp; <i>scriptSource</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#print">print</a></b> ( QPrinter * <i>printer</i> ) const</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="qwebframe.html#contentsSizeChanged">contentsSizeChanged</a></b> ( const QSize &amp; <i>size</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#iconChanged">iconChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#initialLayoutCompleted">initialLayoutCompleted</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#javaScriptWindowObjectCleared">javaScriptWindowObjectCleared</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.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="qwebframe.html#loadStarted">loadStarted</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#pageChanged">pageChanged</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#titleChanged">titleChanged</a></b> ( const QString &amp; <i>title</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebframe.html#urlChanged">urlChanged</a></b> ( const QUrl &amp; <i>url</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<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>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QWebFrame-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebFrame class represents a frame in a web page.</p>
<p>QWebFrame represents a frame inside a web page. Each <a href="qwebpage.html">QWebPage</a> object contains at least one frame, the main frame, obtained using <a href="qwebpage.html#mainFrame">QWebPage::mainFrame</a>(). Additional frames will be created for HTML <tt>&lt;frame&gt;</tt> or <tt>&lt;iframe&gt;</tt> elements.</p>
<p>A frame can be loaded using <a href="qwebframe.html#load">load</a>() or <a href="qwebframe.html#url-prop">setUrl</a>(). Alternatively, if you have the HTML content readily available, you can use <a href="qwebframe.html#setHtml">setHtml</a>() instead.</p>
<p>The <a href="qwebframe.html#page">page</a>() function returns a pointer to the web page object. See <a href="qwebview.html">Elements of QWebView</a> for an explanation of how web frames are related to a web page and web view.</p>
<p>The QWebFrame class also offers methods to retrieve both the URL currently loaded by the frame (see <a href="qwebframe.html#url-prop">url</a>()) as well as the URL originally requested to be loaded (see <a href="qwebframe.html#requestedUrl-prop">requestedUrl</a>()). These methods make possible the retrieval of the URL before and after a DNS resolution or a redirection occurs during the load process. The <a href="qwebframe.html#requestedUrl-prop">requestedUrl</a>() also matches to the URL added to the frame history (<a href="qwebhistory.html">QWebHistory</a>) if load is successful.</p>
<p>The title of an HTML frame can be accessed with the <a href="qwebframe.html#title-prop">title</a>() property. Additionally, a frame may also specify an icon, which can be accessed using the <a href="qwebframe.html#icon-prop">icon</a>() property. If the title or the icon changes, the corresponding <a href="qwebframe.html#titleChanged">titleChanged</a>() and <a href="qwebframe.html#iconChanged">iconChanged</a>() signals will be emitted. The <a href="qwebframe.html#zoomFactor-prop">zoomFactor</a>() property can be used to change the overall size of the content displayed in the frame.</p>
<p>QWebFrame objects are created and controlled by the web page. You can connect to the web page's <a href="qwebpage.html#frameCreated">frameCreated()</a> signal to be notified when a new frame is created.</p>
<p>There are multiple ways to programmatically examine the contents of a frame. The <a href="qwebframe.html#hitTestContent">hitTestContent</a>() function can be used to find elements by coordinate. For access to the underlying DOM tree, there is <a href="qwebframe.html#documentElement">documentElement</a>(), <a href="qwebframe.html#findAllElements">findAllElements</a>() and <a href="qwebframe.html#findFirstElement">findFirstElement</a>().</p>
<p>A QWebFrame can be printed onto a <a href="qprinter.html">QPrinter</a> using the <a href="qwebframe.html#print">print</a>() function. This function is marked as a slot and can be conveniently connected to <a href="qprintpreviewdialog.html">QPrintPreviewDialog</a>'s <a href="qprintpreviewdialog.html#paintRequested">paintRequested()</a> signal.</p>
</div>
<p><b>See also </b><a href="qwebpage.html">QWebPage</a>.</p>
<!-- @@@QWebFrame -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$RenderLayer$$$ContentsLayer$$$ScrollBarLayer$$$PanIconLayer$$$AllLayers -->
<h3 class="fn"><a name="RenderLayer-enum"></a>enum QWebFrame::<span class="name">RenderLayer</span></h3>
<p>This enum describes the layers available for rendering using <a href="qwebframe.html#render">render()</a>. The layers 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>QWebFrame::ContentsLayer</tt></td><td class="topAlign"><tt>0x10</tt></td><td class="topAlign">The web content of the frame</td></tr>
<tr><td class="topAlign"><tt>QWebFrame::ScrollBarLayer</tt></td><td class="topAlign"><tt>0x20</tt></td><td class="topAlign">The scrollbars of the frame</td></tr>
<tr><td class="topAlign"><tt>QWebFrame::PanIconLayer</tt></td><td class="topAlign"><tt>0x40</tt></td><td class="topAlign">The icon used when panning the frame</td></tr>
<tr><td class="topAlign"><tt>QWebFrame::AllLayers</tt></td><td class="topAlign"><tt>0xff</tt></td><td class="topAlign">Includes all the above layers</td></tr>
</table>
<!-- @@@RenderLayer -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$baseUrl-prop$$$baseUrl -->
<h3 class="fn"><a name="baseUrl-prop"></a><span class="name">baseUrl</span> : const <span class="type"><a href="qurl.html">QUrl</a></span></h3>
<p>This property holds the base URL of the frame, can be used to resolve relative URLs.</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"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>baseUrl</b></span> () const</td></tr>
</table>
<!-- @@@baseUrl -->
<!-- $$$contentsSize-prop$$$contentsSize -->
<h3 class="fn"><a name="contentsSize-prop"></a><span class="name">contentsSize</span> : const <span class="type"><a href="qsize.html">QSize</a></span></h3>
<p>This property holds the size of the contents in this frame.</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>contentsSize</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebframe.html#contentsSizeChanged">contentsSizeChanged</a>().</p>
<!-- @@@contentsSize -->
<!-- $$$focus-prop$$$hasFocus -->
<h3 class="fn"><a name="focus-prop"></a><span class="name">focus</span> : const <span class="type">bool</span></h3>
<p>Returns true if this frame has keyboard input focus; otherwise, returns false.</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"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>hasFocus</b></span> () const</td></tr>
</table>
<!-- @@@focus -->
<!-- $$$icon-prop$$$icon -->
<h3 class="fn"><a name="icon-prop"></a><span class="name">icon</span> : const <span class="type"><a href="qicon.html">QIcon</a></span></h3>
<p>This property holds the icon associated with this frame.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QIcon </td><td class="memItemRight bottomAlign"><span class="name"><b>icon</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebframe.html#iconChanged">iconChanged</a>() and <a href="qwebsettings.html#iconForUrl">QWebSettings::iconForUrl</a>().</p>
<!-- @@@icon -->
<!-- $$$requestedUrl-prop$$$requestedUrl -->
<h3 class="fn"><a name="requestedUrl-prop"></a><span class="name">requestedUrl</span> : const <span class="type"><a href="qurl.html">QUrl</a></span></h3>
<p>The URL requested to loaded by the frame currently viewed. The URL may differ from the one returned by <a href="qwebframe.html#url-prop">url</a>() if a DNS resolution or a redirection occurs.</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"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>requestedUrl</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebframe.html#url-prop">url</a>() and <a href="qwebframe.html#url-prop">setUrl</a>().</p>
<!-- @@@requestedUrl -->
<!-- $$$scrollPosition-prop$$$scrollPosition$$$setScrollPositionconstQPoint& -->
<h3 class="fn"><a name="scrollPosition-prop"></a><span class="name">scrollPosition</span> : <span class="type"><a href="qpoint.html">QPoint</a></span></h3>
<p>This property holds the position the frame is currently scrolled to.</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"> QPoint </td><td class="memItemRight bottomAlign"><span class="name"><b>scrollPosition</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setScrollPosition</b></span> ( const QPoint &amp; <i>pos</i> )</td></tr>
</table>
<!-- @@@scrollPosition -->
<!-- $$$title-prop$$$title -->
<h3 class="fn"><a name="title-prop"></a><span class="name">title</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the title of the frame as defined by the HTML &lt;title&gt; element.</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>title</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwebframe.html#titleChanged">titleChanged</a>().</p>
<!-- @@@title -->
<!-- $$$url-prop$$$url$$$setUrlconstQUrl& -->
<h3 class="fn"><a name="url-prop"></a><span class="name">url</span> : <span class="type"><a href="qurl.html">QUrl</a></span></h3>
<p>This property holds the url of the frame currently viewed.</p>
<p>Setting this property clears the view and loads the URL.</p>
<p>By default, this property contains an empty, invalid URL.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QUrl </td><td class="memItemRight bottomAlign"><span class="name"><b>url</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setUrl</b></span> ( const QUrl &amp; <i>url</i> )</td></tr>
</table>
<p><b>See also </b><a href="qwebframe.html#urlChanged">urlChanged</a>().</p>
<!-- @@@url -->
<!-- $$$zoomFactor-prop$$$zoomFactor$$$setZoomFactorqreal -->
<h3 class="fn"><a name="zoomFactor-prop"></a><span class="name">zoomFactor</span> : <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the zoom factor for the frame.</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"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>zoomFactor</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZoomFactor</b></span> ( qreal <i>factor</i> )</td></tr>
</table>
<!-- @@@zoomFactor -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$addToJavaScriptWindowObject[overload1]$$$addToJavaScriptWindowObjectconstQString&QObject* -->
<h3 class="fn"><a name="addToJavaScriptWindowObject"></a><span class="type">void</span> QWebFrame::<span class="name">addToJavaScriptWindowObject</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i> )</h3>
<p>Make <i>object</i> available under <i>name</i> from within the frame's JavaScript context. The <i>object</i> will be inserted as a child of the frame's window object.</p>
<p>Qt properties will be exposed as JavaScript properties and slots as JavaScript methods. The interaction between C++ and JavaScript is explained in the documentation of the <a href="qtwebkit-bridge.html">QtWebKit bridge</a>.</p>
<p>If you want to ensure that your <a href="qtwebkit-bridge.html#qobjects">QObjects</a> remain accessible after loading a new URL, you should add them in a slot connected to the <a href="qwebframe.html#javaScriptWindowObjectCleared">javaScriptWindowObjectCleared</a>() signal.</p>
<p>If Javascript is not enabled for this page, then this method does nothing.</p>
<p>The <i>object</i> will never be explicitly deleted by <a href="qtwebkit.html">QtWebKit</a>.</p>
<!-- @@@addToJavaScriptWindowObject -->
<!-- $$$addToJavaScriptWindowObject$$$addToJavaScriptWindowObjectconstQString&QObject*QScriptEngine::ValueOwnership -->
<h3 class="fn"><a name="addToJavaScriptWindowObject-2"></a><span class="type">void</span> QWebFrame::<span class="name">addToJavaScriptWindowObject</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>name</i>, <span class="type"><a href="qobject.html">QObject</a></span> * <i>object</i>, <span class="type"><a href="qscriptengine.html#ValueOwnership-enum">QScriptEngine::ValueOwnership</a></span> <i>own</i> )</h3>
<p>This is an overloaded function.</p>
<p>Make <i>object</i> available under <i>name</i> from within the frame's JavaScript context. The <i>object</i> will be inserted as a child of the frame's window object.</p>
<p>Qt properties will be exposed as JavaScript properties and slots as JavaScript methods. The interaction between C++ and JavaScript is explained in the documentation of the <a href="qtwebkit-bridge.html">QtWebKit bridge</a>.</p>
<p>If you want to ensure that your <a href="qtwebkit-bridge.html#qobjects">QObjects</a> remain accessible after loading a new URL, you should add them in a slot connected to the <a href="qwebframe.html#javaScriptWindowObjectCleared">javaScriptWindowObjectCleared</a>() signal.</p>
<p>If Javascript is not enabled for this page, then this method does nothing.</p>
<p>The ownership of <i>object</i> is specified using <i>own</i>.</p>
<!-- @@@addToJavaScriptWindowObject -->
<!-- $$$childFrames[overload1]$$$childFrames -->
<h3 class="fn"><a name="childFrames"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type">QWebFrame</span> *&gt; QWebFrame::<span class="name">childFrames</span> () const</h3>
<p>Returns a list of all frames that are direct children of this frame.</p>
<p><b>See also </b><a href="qwebframe.html#parentFrame">parentFrame</a>().</p>
<!-- @@@childFrames -->
<!-- $$$contentsSizeChanged[overload1]$$$contentsSizeChangedconstQSize& -->
<h3 class="fn"><a name="contentsSizeChanged"></a><span class="type">void</span> QWebFrame::<span class="name">contentsSizeChanged</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>size</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the frame's contents size changes to <i>size</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebframe.html#contentsSize-prop">contentsSize</a>().</p>
<!-- @@@contentsSizeChanged -->
<!-- $$$documentElement[overload1]$$$documentElement -->
<h3 class="fn"><a name="documentElement"></a><span class="type"><a href="qwebelement.html">QWebElement</a></span> QWebFrame::<span class="name">documentElement</span> () const</h3>
<p>Returns the document element of this frame.</p>
<p>The document element provides access to the entire structured content of the frame.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@documentElement -->
<!-- $$$evaluateJavaScript[overload1]$$$evaluateJavaScriptconstQString& -->
<h3 class="fn"><a name="evaluateJavaScript"></a><span class="type"><a href="qvariant.html">QVariant</a></span> QWebFrame::<span class="name">evaluateJavaScript</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>scriptSource</i> )<tt> [slot]</tt></h3>
<p>Evaluates the JavaScript defined by <i>scriptSource</i> using this frame as context and returns the result of the last executed statement.</p>
<p><b>See also </b><a href="qwebframe.html#addToJavaScriptWindowObject">addToJavaScriptWindowObject</a>() and <a href="qwebframe.html#javaScriptWindowObjectCleared">javaScriptWindowObjectCleared</a>().</p>
<!-- @@@evaluateJavaScript -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QWebFrame::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$findAllElements[overload1]$$$findAllElementsconstQString& -->
<h3 class="fn"><a name="findAllElements"></a><span class="type"><a href="qwebelementcollection.html">QWebElementCollection</a></span> QWebFrame::<span class="name">findAllElements</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>selectorQuery</i> ) const</h3>
<p>Returns a new list of elements matching the given CSS selector <i>selectorQuery</i>. If there are no matching elements, an empty list is returned.</p>
<p><a href="http://www.w3.org/TR/REC-CSS2/selector.html#q1">Standard CSS2 selector</a> syntax is used for the query.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebelement.html#findAll">QWebElement::findAll</a>().</p>
<!-- @@@findAllElements -->
<!-- $$$findFirstElement[overload1]$$$findFirstElementconstQString& -->
<h3 class="fn"><a name="findFirstElement"></a><span class="type"><a href="qwebelement.html">QWebElement</a></span> QWebFrame::<span class="name">findFirstElement</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>selectorQuery</i> ) const</h3>
<p>Returns the first element in the frame's document that matches the given CSS selector <i>selectorQuery</i>. If there is no matching element, a null element is returned.</p>
<p><a href="http://www.w3.org/TR/REC-CSS2/selector.html#q1">Standard CSS2 selector</a> syntax is used for the query.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebelement.html#findFirst">QWebElement::findFirst</a>().</p>
<!-- @@@findFirstElement -->
<!-- $$$frameName[overload1]$$$frameName -->
<h3 class="fn"><a name="frameName"></a><span class="type"><a href="qstring.html">QString</a></span> QWebFrame::<span class="name">frameName</span> () const</h3>
<p>The name of this frame as defined by the parent frame.</p>
<!-- @@@frameName -->
<!-- $$$geometry[overload1]$$$geometry -->
<h3 class="fn"><a name="geometry"></a><span class="type"><a href="qrect.html">QRect</a></span> QWebFrame::<span class="name">geometry</span> () const</h3>
<p>Return the geometry of the frame relative to it's parent frame.</p>
<!-- @@@geometry -->
<!-- $$$hitTestContent[overload1]$$$hitTestContentconstQPoint& -->
<h3 class="fn"><a name="hitTestContent"></a><span class="type"><a href="qwebhittestresult.html">QWebHitTestResult</a></span> QWebFrame::<span class="name">hitTestContent</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>pos</i> ) const</h3>
<p>Performs a hit test on the frame contents at the given position <i>pos</i> and returns the hit test result.</p>
<!-- @@@hitTestContent -->
<!-- $$$iconChanged[overload1]$$$iconChanged -->
<h3 class="fn"><a name="iconChanged"></a><span class="type">void</span> QWebFrame::<span class="name">iconChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the icon (&quot;favicon&quot;) associated with the frame has been loaded.</p>
<p><b>See also </b><a href="qwebframe.html#icon-prop">icon</a>().</p>
<!-- @@@iconChanged -->
<!-- $$$initialLayoutCompleted[overload1]$$$initialLayoutCompleted -->
<h3 class="fn"><a name="initialLayoutCompleted"></a><span class="type">void</span> QWebFrame::<span class="name">initialLayoutCompleted</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when the frame is laid out the first time. This is the first time you will see contents displayed on the frame.</p>
<p><b>Note:</b> A frame can be laid out multiple times.</p>
<!-- @@@initialLayoutCompleted -->
<!-- $$$javaScriptWindowObjectCleared[overload1]$$$javaScriptWindowObjectCleared -->
<h3 class="fn"><a name="javaScriptWindowObjectCleared"></a><span class="type">void</span> QWebFrame::<span class="name">javaScriptWindowObjectCleared</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the global window object of the JavaScript environment is cleared, e.g&#x2e;, before starting a new load.</p>
<p>If you intend to add <a href="qtwebkit-bridge.html#qobjects">QObjects</a> to a <a href="qwebframe.html">QWebFrame</a> using <a href="qwebframe.html#addToJavaScriptWindowObject">addToJavaScriptWindowObject</a>(), you should add them in a slot connected to this signal. This ensures that your objects remain accessible when loading new URLs.</p>
<!-- @@@javaScriptWindowObjectCleared -->
<!-- $$$load[overload1]$$$loadconstQUrl& -->
<h3 class="fn"><a name="load"></a><span class="type">void</span> QWebFrame::<span class="name">load</span> ( const <span class="type"><a href="qurl.html">QUrl</a></span> &amp; <i>url</i> )</h3>
<p>Loads <i>url</i> into this frame.</p>
<p><b>Note:</b> The view remains the same until enough data has arrived to display the new <i>url</i>.</p>
<p><b>See also </b><a href="qwebframe.html#url-prop">setUrl</a>(), <a href="qwebframe.html#setHtml">setHtml</a>(), and <a href="qwebframe.html#setContent">setContent</a>().</p>
<!-- @@@load -->
<!-- $$$load$$$loadconstQNetworkRequest&QNetworkAccessManager::OperationconstQByteArray& -->
<h3 class="fn"><a name="load-2"></a><span class="type">void</span> QWebFrame::<span class="name">load</span> ( const <span class="type"><a href="qnetworkrequest.html">QNetworkRequest</a></span> &amp; <i>req</i>, <span class="type"><a href="qnetworkaccessmanager.html#Operation-enum">QNetworkAccessManager::Operation</a></span> <i>operation</i> = QNetworkAccessManager::GetOperation, const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp; <i>body</i> = QByteArray() )</h3>
<p>Loads a network request, <i>req</i>, into this frame, using the method specified in <i>operation</i>.</p>
<p><i>body</i> is optional and is only used for POST operations.</p>
<p><b>Note:</b> The view remains the same until enough data has arrived to display the new content.</p>
<p><b>See also </b><a href="qwebframe.html#url-prop">setUrl</a>().</p>
<!-- @@@load -->
<!-- $$$loadFinished[overload1]$$$loadFinishedbool -->
<h3 class="fn"><a name="loadFinished"></a><span class="type">void</span> QWebFrame::<span class="name">loadFinished</span> ( <span class="type">bool</span> <i>ok</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a load of this frame is finished. <i>ok</i> will indicate whether the load was successful or any error occurred.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebframe.html#loadStarted">loadStarted</a>().</p>
<!-- @@@loadFinished -->
<!-- $$$loadStarted[overload1]$$$loadStarted -->
<h3 class="fn"><a name="loadStarted"></a><span class="type">void</span> QWebFrame::<span class="name">loadStarted</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when a new load of this frame is started.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebframe.html#loadFinished">loadFinished</a>().</p>
<!-- @@@loadStarted -->
<!-- $$$metaData[overload1]$$$metaData -->
<h3 class="fn"><a name="metaData"></a><span class="type"><a href="qmultimap.html">QMultiMap</a></span>&lt;<span class="type"><a href="qstring.html">QString</a></span>, <span class="type"><a href="qstring.html">QString</a></span>&gt; QWebFrame::<span class="name">metaData</span> () const</h3>
<p>Returns the meta data in this frame as a <a href="qmultimap.html">QMultiMap</a></p>
<p>The meta data consists of the name and content attributes of the of the <tt>&lt;meta&gt;</tt> tags in the HTML document.</p>
<p>For example:</p>
<pre class="cpp"> <span class="operator">&lt;</span>html<span class="operator">&gt;</span>
     <span class="operator">&lt;</span>head<span class="operator">&gt;</span>
         <span class="operator">&lt;</span>meta name<span class="operator">=</span><span class="string">&quot;description&quot;</span> content<span class="operator">=</span><span class="string">&quot;This document is a tutorial about Qt development&quot;</span><span class="operator">&gt;</span>
         <span class="operator">&lt;</span>meta name<span class="operator">=</span><span class="string">&quot;keywords&quot;</span> content<span class="operator">=</span><span class="string">&quot;Qt, WebKit, Programming&quot;</span><span class="operator">&gt;</span>
     <span class="operator">&lt;</span><span class="operator">/</span>head<span class="operator">&gt;</span>
     <span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
 <span class="operator">&lt;</span><span class="operator">/</span>html<span class="operator">&gt;</span></pre>
<p>Given the above HTML code the metaData() function will return a map with two entries:</p>
<table class="generic">
<thead><tr class="qt-style"><th >Key</th><th >Value</th></tr></thead>
<tr valign="top" class="odd"><td >&quot;description&quot;</td><td >&quot;This document is a tutorial about Qt development&quot;</td></tr>
<tr valign="top" class="even"><td >&quot;keywords&quot;</td><td >&quot;Qt, WebKit, Programming&quot;</td></tr>
</table>
<p>This function returns a multi map to support multiple meta tags with the same attribute name.</p>
<p>This function was introduced in Qt 4.5.</p>
<!-- @@@metaData -->
<!-- $$$page[overload1]$$$page -->
<h3 class="fn"><a name="page"></a><span class="type"><a href="qwebpage.html">QWebPage</a></span> * QWebFrame::<span class="name">page</span> () const</h3>
<p>The web page that contains this frame.</p>
<p><b>See also </b><a href="qwebframe.html#pageChanged">pageChanged</a>().</p>
<!-- @@@page -->
<!-- $$$pageChanged[overload1]$$$pageChanged -->
<h3 class="fn"><a name="pageChanged"></a><span class="type">void</span> QWebFrame::<span class="name">pageChanged</span> ()<tt> [signal]</tt></h3>
<p>This signal is emitted when this frame has been moved to a different <a href="qwebpage.html">QWebPage</a>.</p>
<p>This function was introduced in Qt 4.7.</p>
<p><b>See also </b><a href="qwebframe.html#page">page</a>().</p>
<!-- @@@pageChanged -->
<!-- $$$parentFrame[overload1]$$$parentFrame -->
<h3 class="fn"><a name="parentFrame"></a><span class="type">QWebFrame</span> * QWebFrame::<span class="name">parentFrame</span> () const</h3>
<p>Returns the parent frame of this frame, or 0 if the frame is the web pages main frame.</p>
<p>This is equivalent to qobject_cast&lt;<a href="qwebframe.html">QWebFrame</a>*&gt;(frame-&gt;<a href="qobject.html#parent">parent</a>()).</p>
<p><b>See also </b><a href="qwebframe.html#childFrames">childFrames</a>().</p>
<!-- @@@parentFrame -->
<!-- $$$pos[overload1]$$$pos -->
<h3 class="fn"><a name="pos"></a><span class="type"><a href="qpoint.html">QPoint</a></span> QWebFrame::<span class="name">pos</span> () const</h3>
<p>Returns the position of the frame relative to it's parent frame.</p>
<!-- @@@pos -->
<!-- $$$print[overload1]$$$printQPrinter* -->
<h3 class="fn"><a name="print"></a><span class="type">void</span> QWebFrame::<span class="name">print</span> ( <span class="type"><a href="qprinter.html">QPrinter</a></span> * <i>printer</i> ) const<tt> [slot]</tt></h3>
<p>Prints the frame to the given <i>printer</i>.</p>
<p><b>See also </b><a href="qwebframe.html#render">render</a>().</p>
<!-- @@@print -->
<!-- $$$render[overload1]$$$renderQPainter* -->
<h3 class="fn"><a name="render"></a><span class="type">void</span> QWebFrame::<span class="name">render</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>painter</i> )</h3>
<p>Render the frame into <i>painter</i>.</p>
<!-- @@@render -->
<!-- $$$render$$$renderQPainter*constQRegion& -->
<h3 class="fn"><a name="render-2"></a><span class="type">void</span> QWebFrame::<span class="name">render</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>painter</i>, const <span class="type"><a href="qregion.html">QRegion</a></span> &amp; <i>clip</i> )</h3>
<p>Render the frame into <i>painter</i> clipping to <i>clip</i>.</p>
<!-- @@@render -->
<!-- $$$render$$$renderQPainter*RenderLayerconstQRegion& -->
<h3 class="fn"><a name="render-3"></a><span class="type">void</span> QWebFrame::<span class="name">render</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>painter</i>, <span class="type"><a href="qwebframe.html#RenderLayer-enum">RenderLayer</a></span> <i>layer</i>, const <span class="type"><a href="qregion.html">QRegion</a></span> &amp; <i>clip</i> = QRegion() )</h3>
<p>Render the <i>layer</i> of the frame using <i>painter</i> clipping to <i>clip</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebframe.html#print">print</a>().</p>
<!-- @@@render -->
<!-- $$$renderTreeDump[overload1]$$$renderTreeDump -->
<h3 class="fn"><a name="renderTreeDump"></a><span class="type"><a href="qstring.html">QString</a></span> QWebFrame::<span class="name">renderTreeDump</span> () const</h3>
<p>Returns a dump of the rendering tree. This is mainly useful for debugging html.</p>
<!-- @@@renderTreeDump -->
<!-- $$$scroll[overload1]$$$scrollintint -->
<h3 class="fn"><a name="scroll"></a><span class="type">void</span> QWebFrame::<span class="name">scroll</span> ( <span class="type">int</span> <i>dx</i>, <span class="type">int</span> <i>dy</i> )</h3>
<p>Scrolls the frame <i>dx</i> pixels to the right and <i>dy</i> pixels downward. Both <i>dx</i> and <i>dy</i> may be negative.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also </b><a href="qwebframe.html#scrollPosition-prop">QWebFrame::scrollPosition</a>.</p>
<!-- @@@scroll -->
<!-- $$$scrollBarGeometry[overload1]$$$scrollBarGeometryQt::Orientation -->
<h3 class="fn"><a name="scrollBarGeometry"></a><span class="type"><a href="qrect.html">QRect</a></span> QWebFrame::<span class="name">scrollBarGeometry</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i> ) const</h3>
<p>Returns the geometry for the scrollbar with orientation <i>orientation</i>.</p>
<p>If the scrollbar does not exist an empty rect is returned.</p>
<p>This function was introduced in Qt 4.6.</p>
<!-- @@@scrollBarGeometry -->
<!-- $$$scrollBarMaximum[overload1]$$$scrollBarMaximumQt::Orientation -->
<h3 class="fn"><a name="scrollBarMaximum"></a><span class="type">int</span> QWebFrame::<span class="name">scrollBarMaximum</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i> ) const</h3>
<p>Returns the maximum value for the scrollbar with orientation <i>orientation</i>, or 0 if no scrollbar is found for <i>orientation</i>.</p>
<p><b>See also </b><a href="qwebframe.html#scrollBarMinimum">scrollBarMinimum</a>().</p>
<!-- @@@scrollBarMaximum -->
<!-- $$$scrollBarMinimum[overload1]$$$scrollBarMinimumQt::Orientation -->
<h3 class="fn"><a name="scrollBarMinimum"></a><span class="type">int</span> QWebFrame::<span class="name">scrollBarMinimum</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i> ) const</h3>
<p>Returns the minimum value for the scrollbar with orientation <i>orientation</i>.</p>
<p>The minimum value is always 0.</p>
<p><b>See also </b><a href="qwebframe.html#scrollBarMaximum">scrollBarMaximum</a>().</p>
<!-- @@@scrollBarMinimum -->
<!-- $$$scrollBarPolicy[overload1]$$$scrollBarPolicyQt::Orientation -->
<h3 class="fn"><a name="scrollBarPolicy"></a><span class="type"><a href="qt.html#ScrollBarPolicy-enum">Qt::ScrollBarPolicy</a></span> QWebFrame::<span class="name">scrollBarPolicy</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i> ) const</h3>
<p>Returns the scrollbar policy for the scrollbar defined by <i>orientation</i>.</p>
<p><b>See also </b><a href="qwebframe.html#setScrollBarPolicy">setScrollBarPolicy</a>().</p>
<!-- @@@scrollBarPolicy -->
<!-- $$$scrollBarValue[overload1]$$$scrollBarValueQt::Orientation -->
<h3 class="fn"><a name="scrollBarValue"></a><span class="type">int</span> QWebFrame::<span class="name">scrollBarValue</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i> ) const</h3>
<p>Returns the current value for the scrollbar with orientation <i>orientation</i>, or 0 if no scrollbar is found for <i>orientation</i>.</p>
<p><b>See also </b><a href="qwebframe.html#setScrollBarValue">setScrollBarValue</a>(), <a href="qwebframe.html#scrollBarMinimum">scrollBarMinimum</a>(), and <a href="qwebframe.html#scrollBarMaximum">scrollBarMaximum</a>().</p>
<!-- @@@scrollBarValue -->
<!-- $$$scrollToAnchor[overload1]$$$scrollToAnchorconstQString& -->
<h3 class="fn"><a name="scrollToAnchor"></a><span class="type">void</span> QWebFrame::<span class="name">scrollToAnchor</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>anchor</i> )</h3>
<p>Scrolls the frame to the given <i>anchor</i> name.</p>
<p>This function was introduced in Qt 4.7.</p>
<!-- @@@scrollToAnchor -->
<!-- $$$securityOrigin[overload1]$$$securityOrigin -->
<h3 class="fn"><a name="securityOrigin"></a><span class="type"><a href="qwebsecurityorigin.html">QWebSecurityOrigin</a></span> QWebFrame::<span class="name">securityOrigin</span> () const</h3>
<p>Returns the frame's security origin.</p>
<p>This function was introduced in Qt 4.5.</p>
<!-- @@@securityOrigin -->
<!-- $$$setContent[overload1]$$$setContentconstQByteArray&constQString&constQUrl& -->
<h3 class="fn"><a name="setContent"></a><span class="type">void</span> QWebFrame::<span class="name">setContent</span> ( const <span class="type"><a href="qbytearray.html">QByteArray</a></span> &amp; <i>data</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>mimeType</i> = QString(), const <span class="type"><a href="qurl.html">QUrl</a></span> &amp; <i>baseUrl</i> = QUrl() )</h3>
<p>Sets the content of this frame to the specified content <i>data</i>. If the <i>mimeType</i> argument is empty it is currently assumed that the content is HTML but in future versions we may introduce auto-detection.</p>
<p>External objects referenced in the content are located relative to <i>baseUrl</i>.</p>
<p>The <i>data</i> is loaded immediately; external objects are loaded asynchronously.</p>
<p><b>Note:</b> This method will not affect session or global history for the frame.</p>
<p><b>See also </b><a href="qwebframe.html#toHtml">toHtml</a>() and <a href="qwebframe.html#setHtml">setHtml</a>().</p>
<!-- @@@setContent -->
<!-- $$$setFocus[overload1]$$$setFocus -->
<h3 class="fn"><a name="setFocus"></a><span class="type">void</span> QWebFrame::<span class="name">setFocus</span> ()</h3>
<p>Gives keyboard input focus to this frame.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwebframe.html#focus-prop">hasFocus</a>().</p>
<!-- @@@setFocus -->
<!-- $$$setHtml[overload1]$$$setHtmlconstQString&constQUrl& -->
<h3 class="fn"><a name="setHtml"></a><span class="type">void</span> QWebFrame::<span class="name">setHtml</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>html</i>, const <span class="type"><a href="qurl.html">QUrl</a></span> &amp; <i>baseUrl</i> = QUrl() )</h3>
<p>Sets the content of this frame to <i>html</i>. <i>baseUrl</i> is optional and used to resolve relative URLs in the document, such as referenced images or stylesheets.</p>
<p>The <i>html</i> is loaded immediately; external objects are loaded asynchronously.</p>
<p>If a script in the <i>html</i> runs longer than the default script timeout (currently 10 seconds), for example due to being blocked by a modal JavaScript alert dialog, this method will return as soon as possible after the timeout and any subsequent <i>html</i> will be loaded asynchronously.</p>
<p>When using this method WebKit assumes that external resources such as JavaScript programs or style sheets are encoded in UTF-8 unless otherwise specified. For example, the encoding of an external script can be specified through the charset attribute of the HTML script tag. It is also possible for the encoding to be specified by web server.</p>
<p>This is a convenience function equivalent to setContent(html, &quot;text/html&quot;, <a href="qwebframe.html#baseUrl-prop">baseUrl</a>).</p>
<p><b>Note:</b> This method will not affect session or global history for the frame.</p>
<p><b>Warning:</b> This function works only for HTML, for other mime types (i.e&#x2e; XHTML, SVG) <a href="qwebframe.html#setContent">setContent</a>() should be used instead.</p>
<p><b>See also </b><a href="qwebframe.html#toHtml">toHtml</a>(), <a href="qwebframe.html#setContent">setContent</a>(), and <a href="qwebframe.html#load">load</a>().</p>
<!-- @@@setHtml -->
<!-- $$$setScrollBarPolicy[overload1]$$$setScrollBarPolicyQt::OrientationQt::ScrollBarPolicy -->
<h3 class="fn"><a name="setScrollBarPolicy"></a><span class="type">void</span> QWebFrame::<span class="name">setScrollBarPolicy</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>, <span class="type"><a href="qt.html#ScrollBarPolicy-enum">Qt::ScrollBarPolicy</a></span> <i>policy</i> )</h3>
<p>Sets the scrollbar policy for the scrollbar defined by <i>orientation</i> to <i>policy</i>.</p>
<p><b>See also </b><a href="qwebframe.html#scrollBarPolicy">scrollBarPolicy</a>().</p>
<!-- @@@setScrollBarPolicy -->
<!-- $$$setScrollBarValue[overload1]$$$setScrollBarValueQt::Orientationint -->
<h3 class="fn"><a name="setScrollBarValue"></a><span class="type">void</span> QWebFrame::<span class="name">setScrollBarValue</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>, <span class="type">int</span> <i>value</i> )</h3>
<p>Sets the current <i>value</i> for the scrollbar with orientation <i>orientation</i>.</p>
<p>The scrollbar forces the <i>value</i> to be within the legal range: minimum &lt;= value &lt;= maximum.</p>
<p>Changing the value also updates the thumb position.</p>
<p><b>See also </b><a href="qwebframe.html#scrollBarValue">scrollBarValue</a>(), <a href="qwebframe.html#scrollBarMinimum">scrollBarMinimum</a>(), and <a href="qwebframe.html#scrollBarMaximum">scrollBarMaximum</a>().</p>
<!-- @@@setScrollBarValue -->
<!-- $$$setTextSizeMultiplier[overload1]$$$setTextSizeMultiplierqreal -->
<h3 class="fn"><a name="setTextSizeMultiplier"></a><span class="type">void</span> QWebFrame::<span class="name">setTextSizeMultiplier</span> ( <span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> <i>factor</i> )</h3>
<p>Sets the value of the multiplier used to scale the text in a Web frame to the <i>factor</i> specified.</p>
<p><b>See also </b><a href="qwebframe.html#textSizeMultiplier">textSizeMultiplier</a>().</p>
<!-- @@@setTextSizeMultiplier -->
<!-- $$$textSizeMultiplier[overload1]$$$textSizeMultiplier -->
<h3 class="fn"><a name="textSizeMultiplier"></a><span class="type"><a href="qtglobal.html#qreal-typedef">qreal</a></span> QWebFrame::<span class="name">textSizeMultiplier</span> () const</h3>
<p>Returns the value of the multiplier used to scale the text in a Web frame.</p>
<p><b>See also </b><a href="qwebframe.html#setTextSizeMultiplier">setTextSizeMultiplier</a>().</p>
<!-- @@@textSizeMultiplier -->
<!-- $$$titleChanged[overload1]$$$titleChangedconstQString& -->
<h3 class="fn"><a name="titleChanged"></a><span class="type">void</span> QWebFrame::<span class="name">titleChanged</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the title of the frame changes. The <i>title</i> string specifies the new title.</p>
<p><b>See also </b><a href="qwebframe.html#title-prop">title</a>().</p>
<!-- @@@titleChanged -->
<!-- $$$toHtml[overload1]$$$toHtml -->
<h3 class="fn"><a name="toHtml"></a><span class="type"><a href="qstring.html">QString</a></span> QWebFrame::<span class="name">toHtml</span> () const</h3>
<p>Returns the frame's content as HTML, enclosed in HTML and BODY tags.</p>
<p><b>See also </b><a href="qwebframe.html#setHtml">setHtml</a>() and <a href="qwebframe.html#toPlainText">toPlainText</a>().</p>
<!-- @@@toHtml -->
<!-- $$$toPlainText[overload1]$$$toPlainText -->
<h3 class="fn"><a name="toPlainText"></a><span class="type"><a href="qstring.html">QString</a></span> QWebFrame::<span class="name">toPlainText</span> () const</h3>
<p>Returns the content of this frame converted to plain text, completely stripped of all HTML formatting.</p>
<p><b>See also </b><a href="qwebframe.html#toHtml">toHtml</a>().</p>
<!-- @@@toPlainText -->
<!-- $$$urlChanged[overload1]$$$urlChangedconstQUrl& -->
<h3 class="fn"><a name="urlChanged"></a><span class="type">void</span> QWebFrame::<span class="name">urlChanged</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 with the URL of the frame when the frame's title is received. The new URL is specified by <i>url</i>.</p>
<p><b>See also </b><a href="qwebframe.html#url-prop">url</a>().</p>
<!-- @@@urlChanged -->
</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>