Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3f684444755c5ad1181cdd5a97348f3c > files > 1219

PyQt4-devel-4.7.4-2.fc14.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QGraphicsWebView Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QGraphicsWebView Class Reference<br /><sup><sup>[<a href="qtwebkit.html">QtWebKit</a> module]</sup></sup></h1><p>The QGraphicsWebView class allows Web content to be added to a <a href="graphicsview.html#graphicsview">GraphicsView</a>. <a href="#details">More...</a></p>
<p>Inherits <a href="qgraphicswidget.html">QGraphicsWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qgraphicswebview.html#QGraphicsWebView">__init__</a></b> (<i>self</i>, QGraphicsItem&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#back">back</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#contextMenuEvent">contextMenuEvent</a></b> (<i>self</i>, QGraphicsSceneContextMenuEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#dragEnterEvent">dragEnterEvent</a></b> (<i>self</i>, QGraphicsSceneDragDropEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#dragLeaveEvent">dragLeaveEvent</a></b> (<i>self</i>, QGraphicsSceneDragDropEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#dragMoveEvent">dragMoveEvent</a></b> (<i>self</i>, QGraphicsSceneDragDropEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#dropEvent">dropEvent</a></b> (<i>self</i>, QGraphicsSceneDragDropEvent)</li><li><div class="fn" />bool <b><a href="qgraphicswebview.html#event">event</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" />bool <b><a href="qgraphicswebview.html#findText">findText</a></b> (<i>self</i>, QString, QWebPage.FindFlags&#160;<i>options</i>&#160;=&#160;0)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#focusInEvent">focusInEvent</a></b> (<i>self</i>, QFocusEvent)</li><li><div class="fn" />bool <b><a href="qgraphicswebview.html#focusNextPrevChild">focusNextPrevChild</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#focusOutEvent">focusOutEvent</a></b> (<i>self</i>, QFocusEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#forward">forward</a></b> (<i>self</i>)</li><li><div class="fn" />QWebHistory <b><a href="qgraphicswebview.html#history">history</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#hoverLeaveEvent">hoverLeaveEvent</a></b> (<i>self</i>, QGraphicsSceneHoverEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#hoverMoveEvent">hoverMoveEvent</a></b> (<i>self</i>, QGraphicsSceneHoverEvent)</li><li><div class="fn" />QIcon <b><a href="qgraphicswebview.html#icon">icon</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#inputMethodEvent">inputMethodEvent</a></b> (<i>self</i>, QInputMethodEvent)</li><li><div class="fn" />QVariant <b><a href="qgraphicswebview.html#inputMethodQuery">inputMethodQuery</a></b> (<i>self</i>, Qt.InputMethodQuery)</li><li><div class="fn" />bool <b><a href="qgraphicswebview.html#isModified">isModified</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qgraphicswebview.html#itemChange">itemChange</a></b> (<i>self</i>, QGraphicsItem.GraphicsItemChange, QVariant)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#keyPressEvent">keyPressEvent</a></b> (<i>self</i>, QKeyEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#keyReleaseEvent">keyReleaseEvent</a></b> (<i>self</i>, QKeyEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#load">load</a></b> (<i>self</i>, QUrl)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#load-2">load</a></b> (<i>self</i>, QNetworkRequest, QNetworkAccessManager.Operation&#160;<i>operation</i>&#160;=&#160;QNetworkAccessManager.GetOperation, QByteArray&#160;<i>body</i>&#160;=&#160;QByteArray())</li><li><div class="fn" /><b><a href="qgraphicswebview.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b> (<i>self</i>, QGraphicsSceneMouseEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QGraphicsSceneMouseEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#mousePressEvent">mousePressEvent</a></b> (<i>self</i>, QGraphicsSceneMouseEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QGraphicsSceneMouseEvent)</li><li><div class="fn" />QWebPage <b><a href="qgraphicswebview.html#page">page</a></b> (<i>self</i>)</li><li><div class="fn" />QAction <b><a href="qgraphicswebview.html#pageAction">pageAction</a></b> (<i>self</i>, QWebPage.WebAction)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#paint">paint</a></b> (<i>self</i>, QPainter, QStyleOptionGraphicsItem, QWidget&#160;<i>widget</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#reload">reload</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qgraphicswebview.html#sceneEvent">sceneEvent</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#setContent">setContent</a></b> (<i>self</i>, QByteArray, QString&#160;<i>mimeType</i>&#160;=&#160;QString(), QUrl&#160;<i>baseUrl</i>&#160;=&#160;QUrl())</li><li><div class="fn" /><b><a href="qgraphicswebview.html#setGeometry">setGeometry</a></b> (<i>self</i>, QRectF)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#setHtml">setHtml</a></b> (<i>self</i>, QString, QUrl&#160;<i>baseUrl</i>&#160;=&#160;QUrl())</li><li><div class="fn" /><b><a href="qgraphicswebview.html#setPage">setPage</a></b> (<i>self</i>, QWebPage)</li><li><div class="fn" />QWebSettings <b><a href="qgraphicswebview.html#settings">settings</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#setUrl">setUrl</a></b> (<i>self</i>, QUrl)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#setZoomFactor">setZoomFactor</a></b> (<i>self</i>, float)</li><li><div class="fn" />QSizeF <b><a href="qgraphicswebview.html#sizeHint">sizeHint</a></b> (<i>self</i>, Qt.SizeHint, QSizeF)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#stop">stop</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qgraphicswebview.html#title">title</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#triggerPageAction">triggerPageAction</a></b> (<i>self</i>, QWebPage.WebAction, bool&#160;<i>checked</i>&#160;=&#160;False)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#updateGeometry">updateGeometry</a></b> (<i>self</i>)</li><li><div class="fn" />QUrl <b><a href="qgraphicswebview.html#url">url</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgraphicswebview.html#wheelEvent">wheelEvent</a></b> (<i>self</i>, QGraphicsSceneWheelEvent)</li><li><div class="fn" />float <b><a href="qgraphicswebview.html#zoomFactor">zoomFactor</a></b> (<i>self</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qgraphicswebview.html#iconChanged">iconChanged</a></b> ()</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#linkClicked">linkClicked</a></b> (const QUrl&amp;)</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#loadFinished">loadFinished</a></b> (bool)</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#loadProgress">loadProgress</a></b> (int)</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#loadStarted">loadStarted</a></b> ()</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#statusBarMessage">statusBarMessage</a></b> (const QString&amp;)</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#titleChanged">titleChanged</a></b> (const QString&amp;)</li><li><div class="fn" />void <b><a href="qgraphicswebview.html#urlChanged">urlChanged</a></b> (const QUrl&amp;)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QGraphicsWebView class allows Web content to be added to a <a href="graphicsview.html#graphicsview">GraphicsView</a>.</p>
<p>An instance of this class renders Web content from a URL or supplied as data, using features of the <a href="qtwebkit.html">QtWebKit</a> module.</p>
<p>If the width and height of the item are not set, they will default to 800 and 600, respectively. If the Web page contents is larger than that, scrollbars will be shown if not disabled explicitly.</p>
<a name="browser-features" />
<h3>Browser Features</h3>
<p>Many of the functions, signals and properties provided by <a href="qwebview.html">QWebView</a> are also available for this item, making it simple to adapt existing code to use QGraphicsWebView instead of <a href="qwebview.html">QWebView</a>.</p>
<p>The item uses a <a href="qwebpage.html">QWebPage</a> object to perform the rendering of Web content, and this can be obtained with the <a href="qgraphicswebview.html#page">page</a>() function, enabling the document itself to be accessed and modified.</p>
<p>As with <a href="qwebview.html">QWebView</a>, the item records the browsing history using a <a href="qwebhistory.html">QWebHistory</a> object, accessible using the <a href="qgraphicswebview.html#history">history</a>() function. The <a href="qwebsettings.html">QWebSettings</a> object that defines the configuration of the browser can be obtained with the <a href="qgraphicswebview.html#settings">settings</a>() function, enabling features like plugin support to be customized for each item.</p>
<p>See also <a href="qwebview.html">QWebView</a> and <a href="qgraphicstextitem.html">QGraphicsTextItem</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QGraphicsWebView" />QGraphicsWebView.__init__ (<i>self</i>, <a href="qgraphicsitem.html">QGraphicsItem</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs an empty <a href="qgraphicswebview.html">QGraphicsWebView</a> with parent <i>parent</i>.</p>
<p>See also <a href="qgraphicswebview.html#load">load</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/~QGraphicsWebView" />
<h3 class="fn"><a name="back" />QGraphicsWebView.back (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void back()</tt>.</p><p>Convenience slot that loads the previous document in the list of documents built by navigating links. Does nothing if there is no previous document.</p>
<p>See also <a href="qgraphicswebview.html#forward">forward</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/contextMenuEvent" />
<h3 class="fn"><a name="contextMenuEvent" />QGraphicsWebView.contextMenuEvent (<i>self</i>, <a href="qgraphicsscenecontextmenuevent.html">QGraphicsSceneContextMenuEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#contextMenuEvent">QGraphicsItem.contextMenuEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/dragEnterEvent" />
<h3 class="fn"><a name="dragEnterEvent" />QGraphicsWebView.dragEnterEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#dragEnterEvent">QGraphicsItem.dragEnterEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/dragLeaveEvent" />
<h3 class="fn"><a name="dragLeaveEvent" />QGraphicsWebView.dragLeaveEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#dragLeaveEvent">QGraphicsItem.dragLeaveEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/dragMoveEvent" />
<h3 class="fn"><a name="dragMoveEvent" />QGraphicsWebView.dragMoveEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#dragMoveEvent">QGraphicsItem.dragMoveEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/dropEvent" />
<h3 class="fn"><a name="dropEvent" />QGraphicsWebView.dropEvent (<i>self</i>, <a href="qgraphicsscenedragdropevent.html">QGraphicsSceneDragDropEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#dropEvent">QGraphicsItem.dropEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/event" />
<h3 class="fn"><a name="event" />bool QGraphicsWebView.event (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/findText" />
<h3 class="fn"><a name="findText" />bool QGraphicsWebView.findText (<i>self</i>, QString, <a href="qwebpage-findflags.html">QWebPage.FindFlags</a>&#160;<i>options</i>&#160;=&#160;0)</h3><p>Finds the specified string, <i>subString</i>, in the page, using the given <i>options</i>.</p>
<p>If the HighlightAllOccurrences 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 HighlightAllOccurrences 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>
<p>See also <a href="qwebpage.html#selectedText-prop">QWebPage.selectedText</a>() and <a href="qwebpage.html#selectionChanged">QWebPage.selectionChanged</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/focusInEvent" />
<h3 class="fn"><a name="focusInEvent" />QGraphicsWebView.focusInEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#focusInEvent">QGraphicsItem.focusInEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/focusNextPrevChild" />
<h3 class="fn"><a name="focusNextPrevChild" />bool QGraphicsWebView.focusNextPrevChild (<i>self</i>, bool)</h3><p>Reimplemented from <a href="qgraphicswidget.html#focusNextPrevChild">QGraphicsWidget.focusNextPrevChild</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/focusOutEvent" />
<h3 class="fn"><a name="focusOutEvent" />QGraphicsWebView.focusOutEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#focusOutEvent">QGraphicsItem.focusOutEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/forward" />
<h3 class="fn"><a name="forward" />QGraphicsWebView.forward (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void forward()</tt>.</p><p>Convenience slot that loads the next document in the list of documents built by navigating links. Does nothing if there is no next document.</p>
<p>See also <a href="qgraphicswebview.html#back">back</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/history" />
<h3 class="fn"><a name="history" /><a href="qwebhistory.html">QWebHistory</a> QGraphicsWebView.history (<i>self</i>)</h3><p>Returns a pointer to the view's history of navigated web pages.</p>
<p>It is equivalent to</p>
<pre>     view-&gt;page()-&gt;history();</pre>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/hoverLeaveEvent" />
<h3 class="fn"><a name="hoverLeaveEvent" />QGraphicsWebView.hoverLeaveEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#hoverLeaveEvent">QGraphicsItem.hoverLeaveEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/hoverMoveEvent" />
<h3 class="fn"><a name="hoverMoveEvent" />QGraphicsWebView.hoverMoveEvent (<i>self</i>, <a href="qgraphicsscenehoverevent.html">QGraphicsSceneHoverEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#hoverMoveEvent">QGraphicsItem.hoverMoveEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/iconChanged" />
<h3 class="fn"><a name="icon" /><a href="qicon.html">QIcon</a> QGraphicsWebView.icon (<i>self</i>)</h3><h3 class="fn"><a name="inputMethodEvent" />QGraphicsWebView.inputMethodEvent (<i>self</i>, <a href="qinputmethodevent.html">QInputMethodEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#inputMethodEvent">QGraphicsItem.inputMethodEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/inputMethodQuery" />
<h3 class="fn"><a name="inputMethodQuery" />QVariant QGraphicsWebView.inputMethodQuery (<i>self</i>, <a href="qt.html#InputMethodQuery-enum">Qt.InputMethodQuery</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#inputMethodQuery">QGraphicsItem.inputMethodQuery</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/itemChange" />
<h3 class="fn"><a name="isModified" />bool QGraphicsWebView.isModified (<i>self</i>)</h3><h3 class="fn"><a name="itemChange" />QVariant QGraphicsWebView.itemChange (<i>self</i>, <a href="qgraphicsitem.html#GraphicsItemChange-enum">QGraphicsItem.GraphicsItemChange</a>, QVariant)</h3><p>Reimplemented from <a href="qgraphicsitem.html#itemChange">QGraphicsItem.itemChange</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/keyPressEvent" />
<h3 class="fn"><a name="keyPressEvent" />QGraphicsWebView.keyPressEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#keyPressEvent">QGraphicsItem.keyPressEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/keyReleaseEvent" />
<h3 class="fn"><a name="keyReleaseEvent" />QGraphicsWebView.keyReleaseEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#keyReleaseEvent">QGraphicsItem.keyReleaseEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/linkClicked" />
<h3 class="fn"><a name="load" />QGraphicsWebView.load (<i>self</i>, <a href="qurl.html">QUrl</a>)</h3><p>Loads the specified <i>url</i> and displays it.</p>
<p><b>Note:</b> The view remains the same until enough data has arrived to display the new <i>url</i>.</p>
<p>See also <a href="qgraphicswebview.html#url-prop">setUrl</a>(), <a href="qgraphicswebview.html#url-prop">url</a>(), and <a href="qgraphicswebview.html#urlChanged">urlChanged</a>().</p>
<h3 class="fn"><a name="load-2" />QGraphicsWebView.load (<i>self</i>, <a href="qnetworkrequest.html">QNetworkRequest</a>, <a href="qnetworkaccessmanager.html#Operation-enum">QNetworkAccessManager.Operation</a>&#160;<i>operation</i>&#160;=&#160;QNetworkAccessManager.GetOperation, <a href="qbytearray.html">QByteArray</a>&#160;<i>body</i>&#160;=&#160;QByteArray())</h3><p>Loads a network request, <i>request</i>, 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 url.</p>
<p>See also <a href="qgraphicswebview.html#url-prop">url</a>() and <a href="qgraphicswebview.html#urlChanged">urlChanged</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/loadFinished" />
<h3 class="fn"><a name="mouseDoubleClickEvent" />QGraphicsWebView.mouseDoubleClickEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#mouseDoubleClickEvent">QGraphicsItem.mouseDoubleClickEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/mouseMoveEvent" />
<h3 class="fn"><a name="mouseMoveEvent" />QGraphicsWebView.mouseMoveEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#mouseMoveEvent">QGraphicsItem.mouseMoveEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/mousePressEvent" />
<h3 class="fn"><a name="mousePressEvent" />QGraphicsWebView.mousePressEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#mousePressEvent">QGraphicsItem.mousePressEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/mouseReleaseEvent" />
<h3 class="fn"><a name="mouseReleaseEvent" />QGraphicsWebView.mouseReleaseEvent (<i>self</i>, <a href="qgraphicsscenemouseevent.html">QGraphicsSceneMouseEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#mouseReleaseEvent">QGraphicsItem.mouseReleaseEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/page" />
<h3 class="fn"><a name="page" /><a href="qwebpage.html">QWebPage</a> QGraphicsWebView.page (<i>self</i>)</h3><p>Returns a pointer to the underlying web page.</p>
<p>See also <a href="qgraphicswebview.html#setPage">setPage</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/pageAction" />
<h3 class="fn"><a name="pageAction" /><a href="qaction.html">QAction</a> QGraphicsWebView.pageAction (<i>self</i>, <a href="qwebpage.html#WebAction-enum">QWebPage.WebAction</a>)</h3><p>Returns a pointer to a <a href="qaction.html">QAction</a> that encapsulates the specified web action <i>action</i>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/paint" />
<h3 class="fn"><a name="paint" />QGraphicsWebView.paint (<i>self</i>, <a href="qpainter.html">QPainter</a>, <a href="qstyleoptiongraphicsitem.html">QStyleOptionGraphicsItem</a>, <a href="qwidget.html">QWidget</a>&#160;<i>widget</i>&#160;=&#160;None)</h3><p>Reimplemented from <a href="qgraphicsitem.html#paint">QGraphicsItem.paint</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/reload" />
<h3 class="fn"><a name="reload" />QGraphicsWebView.reload (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void reload()</tt>.</p><p>Reloads the current document.</p>
<p>See also <a href="qgraphicswebview.html#stop">stop</a>() and <a href="qgraphicswebview.html#loadStarted">loadStarted</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/sceneEvent" />
<h3 class="fn"><a name="sceneEvent" />bool QGraphicsWebView.sceneEvent (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#sceneEvent">QGraphicsItem.sceneEvent</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/setContent" />
<h3 class="fn"><a name="setContent" />QGraphicsWebView.setContent (<i>self</i>, <a href="qbytearray.html">QByteArray</a>, QString&#160;<i>mimeType</i>&#160;=&#160;QString(), <a href="qurl.html">QUrl</a>&#160;<i>baseUrl</i>&#160;=&#160;QUrl())</h3><p>Sets the content of the web graphicsitem 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>See also <a href="qgraphicswebview.html#load">load</a>(), <a href="qgraphicswebview.html#setHtml">setHtml</a>(), and <a href="qwebframe.html#toHtml">QWebFrame.toHtml</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/setGeometry" />
<h3 class="fn"><a name="setGeometry" />QGraphicsWebView.setGeometry (<i>self</i>, <a href="qrectf.html">QRectF</a>)</h3><p>Reimplemented from <a href="qgraphicslayoutitem.html#setGeometry">QGraphicsLayoutItem.setGeometry</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/setHtml" />
<h3 class="fn"><a name="setHtml" />QGraphicsWebView.setHtml (<i>self</i>, QString, <a href="qurl.html">QUrl</a>&#160;<i>baseUrl</i>&#160;=&#160;QUrl())</h3><p>Sets the content of the web view to the specified <i>html</i>.</p>
<p>External objects such as stylesheets or images referenced in the HTML document are located relative to <i>baseUrl</i>.</p>
<p>The <i>html</i> is loaded immediately; external objects are loaded asynchronously.</p>
<p>When using this method, <a href="examples.html#webkit">WebKit</a> 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. Alternatively, the encoding can also be specified by the web server.</p>
<p>See also <a href="qgraphicswebview.html#load">load</a>(), <a href="qgraphicswebview.html#setContent">setContent</a>(), and <a href="qwebframe.html#toHtml">QWebFrame.toHtml</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/setPage" />
<h3 class="fn"><a name="setPage" />QGraphicsWebView.setPage (<i>self</i>, <a href="qwebpage.html">QWebPage</a>)</h3><p>Makes <i>page</i> the new web page of the web graphicsitem.</p>
<p>The parent <a href="qobject.html">QObject</a> of the provided page remains the owner of the object. If the current document is a child of the web view, it will be deleted.</p>
<p>See also <a href="qgraphicswebview.html#page">page</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/settings" />
<h3 class="fn"><a name="settings" /><a href="qwebsettings.html">QWebSettings</a> QGraphicsWebView.settings (<i>self</i>)</h3><p>Returns a pointer to the view/page specific settings object.</p>
<p>It is equivalent to</p>
<pre>     view-&gt;page()-&gt;settings();</pre>
<p>See also <a href="qwebsettings.html#globalSettings">QWebSettings.globalSettings</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/sizeHint" />
<h3 class="fn"><a name="setUrl" />QGraphicsWebView.setUrl (<i>self</i>, <a href="qurl.html">QUrl</a>)</h3><h3 class="fn"><a name="setZoomFactor" />QGraphicsWebView.setZoomFactor (<i>self</i>, float)</h3><h3 class="fn"><a name="sizeHint" /><a href="qsizef.html">QSizeF</a> QGraphicsWebView.sizeHint (<i>self</i>, <a href="qt.html#SizeHint-enum">Qt.SizeHint</a>, <a href="qsizef.html">QSizeF</a>)</h3><p>Reimplemented from <a href="qgraphicslayoutitem.html#sizeHint">QGraphicsLayoutItem.sizeHint</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/statusBarMessage" />
<h3 class="fn"><a name="stop" />QGraphicsWebView.stop (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void stop()</tt>.</p><p>Convenience slot that stops loading the document.</p>
<p>See also <a href="qgraphicswebview.html#reload">reload</a>() and <a href="qgraphicswebview.html#loadFinished">loadFinished</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/titleChanged" />
<h3 class="fn"><a name="title" />QString QGraphicsWebView.title (<i>self</i>)</h3><h3 class="fn"><a name="triggerPageAction" />QGraphicsWebView.triggerPageAction (<i>self</i>, <a href="qwebpage.html#WebAction-enum">QWebPage.WebAction</a>, bool&#160;<i>checked</i>&#160;=&#160;False)</h3><p>Triggers the specified <i>action</i>. If it is a checkable action the specified <i>checked</i> state is assumed.</p>
<p>See also <a href="qgraphicswebview.html#pageAction">pageAction</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/updateGeometry" />
<h3 class="fn"><a name="updateGeometry" />QGraphicsWebView.updateGeometry (<i>self</i>)</h3><p>Reimplemented from <a href="qgraphicslayoutitem.html#updateGeometry">QGraphicsLayoutItem.updateGeometry</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/urlChanged" />
<h3 class="fn"><a name="url" /><a href="qurl.html">QUrl</a> QGraphicsWebView.url (<i>self</i>)</h3><h3 class="fn"><a name="wheelEvent" />QGraphicsWebView.wheelEvent (<i>self</i>, <a href="qgraphicsscenewheelevent.html">QGraphicsSceneWheelEvent</a>)</h3><p>Reimplemented from <a href="qgraphicsitem.html#wheelEvent">QGraphicsItem.wheelEvent</a>().</p>
<p /><h3 class="fn"><a name="zoomFactor" />float QGraphicsWebView.zoomFactor (<i>self</i>)</h3><hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="iconChanged" />void iconChanged ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the icon of the page is loaded or changes.</p>
<p>In order for icons to be loaded, you will need to set an icon database path using <a href="qwebsettings.html#setIconDatabasePath">QWebSettings.setIconDatabasePath</a>().</p>
<p>See also <a href="qgraphicswebview.html#icon-prop">icon</a>() and <a href="qwebsettings.html#setIconDatabasePath">QWebSettings.setIconDatabasePath</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/inputMethodEvent" />
<h3 class="fn"><a name="linkClicked" />void linkClicked (const QUrl&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the user clicks on a link and the page's linkDelegationPolicy property is set to delegate the link handling for the specified <i>url</i>.</p>
<p>See also <a href="qwebpage.html#linkDelegationPolicy-prop">QWebPage.linkDelegationPolicy</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/load" />
<h3 class="fn"><a name="loadFinished" />void loadFinished (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when a load of the page is finished. <i>ok</i> will indicate whether the load was successful or any error occurred.</p>
<p>See also <a href="qgraphicswebview.html#loadStarted">loadStarted</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/loadProgress" />
<h3 class="fn"><a name="loadProgress" />void loadProgress (int)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted every time an element in the web page completes loading and the overall loading progress advances.</p>
<p>This signal tracks the progress of all child frames.</p>
<p>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>.</p>
<p>See also <a href="qgraphicswebview.html#loadStarted">loadStarted</a>() and <a href="qgraphicswebview.html#loadFinished">loadFinished</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/loadStarted" />
<h3 class="fn"><a name="loadStarted" />void loadStarted ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when a new load of the page is started.</p>
<p>See also <a href="qgraphicswebview.html#loadProgress">loadProgress</a>() and <a href="qgraphicswebview.html#loadFinished">loadFinished</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/mouseDoubleClickEvent" />
<h3 class="fn"><a name="statusBarMessage" />void statusBarMessage (const QString&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the statusbar <i>text</i> is changed by the page.</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/stop" />
<h3 class="fn"><a name="titleChanged" />void titleChanged (const QString&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the <i>title</i> of the main frame changes.</p>
<p>See also <a href="qgraphicswebview.html#title-prop">title</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/triggerPageAction" />
<h3 class="fn"><a name="urlChanged" />void urlChanged (const QUrl&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the <i>url</i> of the view changes.</p>
<p>See also <a href="qgraphicswebview.html#url-prop">url</a>() and <a href="qgraphicswebview.html#load">load</a>().</p>
<a name="//apple_ref/cpp/instm/QGraphicsWebView/wheelEvent" />
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.4 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.3</td></tr></table></div></address></body></html>