/usr/share/qt5/doc/qtwebkit/qgraphicswebview.html is in qtwebkit5-doc-html 5.1.1-1ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgraphicswebview.cpp -->
<title>QGraphicsWebView Class | QtWebKit 5.1</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.1</li>
<li>QGraphicsWebView</li>
<li id="buildversion">
Qt 5.1.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#browser-features">Browser Features</a></li>
</ul>
</div>
<h1 class="title">QGraphicsWebView Class</h1>
<!-- $$$QGraphicsWebView-brief -->
<p>The QGraphicsWebView class allows Web content to be added to a GraphicsView. <a href="#details">More...</a></p>
<!-- @@@QGraphicsWebView -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include <QGraphicsWebView></span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 4.6</td></tr></table><ul>
<li><a href="qgraphicswebview-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qgraphicswebview.html#icon-prop">icon</a></b> : const QIcon</li>
<li class="fn"><b><a href="qgraphicswebview.html#modified-prop">modified</a></b> : const bool</li>
<li class="fn"><b><a href="qgraphicswebview.html#renderHints-prop">renderHints</a></b> : QPainter::RenderHints</li>
<li class="fn"><b><a href="qgraphicswebview.html#resizesToContents-prop">resizesToContents</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qgraphicswebview.html#tiledBackingStoreFrozen-prop">tiledBackingStoreFrozen</a></b> : bool</li>
<li class="fn"><b><a href="qgraphicswebview.html#title-prop">title</a></b> : const QString</li>
<li class="fn"><b><a href="qgraphicswebview.html#url-prop">url</a></b> : QUrl</li>
<li class="fn"><b><a href="qgraphicswebview.html#zoomFactor-prop">zoomFactor</a></b> : qreal</li>
</ul>
</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#QGraphicsWebView">QGraphicsWebView</a></b>(QGraphicsItem *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#dtor.QGraphicsWebView">~QGraphicsWebView</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#event">event</a></b>(QEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#findText">findText</a></b>(const QString &<i> subString</i>, QWebPage::FindFlags<i> options</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebHistory * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#history">history</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#icon-prop">icon</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#inputMethodQuery">inputMethodQuery</a></b>(Qt::InputMethodQuery<i> query</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#modified-prop">isModified</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#tiledBackingStoreFrozen-prop">isTiledBackingStoreFrozen</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#itemChange">itemChange</a></b>(GraphicsItemChange<i> change</i>, const QVariant &<i> value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#load">load</a></b>(const QUrl &<i> url</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#load-2">load</a></b>(const QNetworkRequest &<i> request</i>, QNetworkAccessManager::Operation<i> operation</i> = QNetworkAccessManager::GetOperation, const QByteArray &<i> body</i> = QByteArray())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebPage * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#page">page</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#pageAction">pageAction</a></b>(QWebPage::WebAction<i> action</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#paint">paint</a></b>(QPainter *<i> painter</i>, const QStyleOptionGraphicsItem *<i> option</i>, QWidget *<i> widget</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPainter::RenderHints </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#renderHints-prop">renderHints</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#resizesToContents-prop">resizesToContents</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#setContent">setContent</a></b>(const QByteArray &<i> data</i>, const QString &<i> mimeType</i> = QString(), const QUrl &<i> baseUrl</i> = QUrl())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#setGeometry">setGeometry</a></b>(const QRectF &<i> rect</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#setHtml">setHtml</a></b>(const QString &<i> html</i>, const QUrl &<i> baseUrl</i> = QUrl())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#setPage">setPage</a></b>(QWebPage *<i> page</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#setRenderHint">setRenderHint</a></b>(QPainter::RenderHint<i> hint</i>, bool<i> enabled</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#renderHints-prop">setRenderHints</a></b>(QPainter::RenderHints<i> hints</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#resizesToContents-prop">setResizesToContents</a></b>(bool<i> enabled</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#tiledBackingStoreFrozen-prop">setTiledBackingStoreFrozen</a></b>(bool<i> frozen</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#url-prop">setUrl</a></b>(const QUrl &)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#zoomFactor-prop">setZoomFactor</a></b>(qreal)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSettings * </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#settings">settings</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSizeF </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#sizeHint">sizeHint</a></b>(Qt::SizeHint<i> which</i>, const QSizeF &<i> constraint</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#title-prop">title</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#triggerPageAction">triggerPageAction</a></b>(QWebPage::WebAction<i> action</i>, bool<i> checked</i> = false)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#updateGeometry">updateGeometry</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#url-prop">url</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#zoomFactor-prop">zoomFactor</a></b>() const</td></tr>
</table>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#back">back</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#forward">forward</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#reload">reload</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#stop">stop</a></b>()</td></tr>
</table>
<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="qgraphicswebview.html#icon-prop">iconChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#linkClicked">linkClicked</a></b>(const QUrl &<i> url</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.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="qgraphicswebview.html#loadProgress">loadProgress</a></b>(int<i> progress</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#loadStarted">loadStarted</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#statusBarMessage">statusBarMessage</a></b>(const QString &<i> text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#title-prop">titleChanged</a></b>(const QString &<i> title</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#url-prop">urlChanged</a></b>(const QUrl &<i> url</i>)</td></tr>
</table>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#contextMenuEvent">contextMenuEvent</a></b>(QGraphicsSceneContextMenuEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#dragEnterEvent">dragEnterEvent</a></b>(QGraphicsSceneDragDropEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#dragLeaveEvent">dragLeaveEvent</a></b>(QGraphicsSceneDragDropEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#dragMoveEvent">dragMoveEvent</a></b>(QGraphicsSceneDragDropEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#dropEvent">dropEvent</a></b>(QGraphicsSceneDragDropEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#focusInEvent">focusInEvent</a></b>(QFocusEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#focusNextPrevChild">focusNextPrevChild</a></b>(bool<i> next</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#focusOutEvent">focusOutEvent</a></b>(QFocusEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#hoverLeaveEvent">hoverLeaveEvent</a></b>(QGraphicsSceneHoverEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#hoverMoveEvent">hoverMoveEvent</a></b>(QGraphicsSceneHoverEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#inputMethodEvent">inputMethodEvent</a></b>(QInputMethodEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#keyPressEvent">keyPressEvent</a></b>(QKeyEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#keyReleaseEvent">keyReleaseEvent</a></b>(QKeyEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b>(QGraphicsSceneMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#mouseMoveEvent">mouseMoveEvent</a></b>(QGraphicsSceneMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#mousePressEvent">mousePressEvent</a></b>(QGraphicsSceneMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#mouseReleaseEvent">mouseReleaseEvent</a></b>(QGraphicsSceneMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#sceneEvent">sceneEvent</a></b>(QEvent *<i> event</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicswebview.html#wheelEvent">wheelEvent</a></b>(QGraphicsSceneWheelEvent *<i> ev</i>)</td></tr>
</table>
<a name="details"></a>
<!-- $$$QGraphicsWebView-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGraphicsWebView class allows Web content to be added to a GraphicsView.</p>
<p>An instance of this class renders Web content from a URL or supplied as data, using features of the Qt WebKit 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"></a>
<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>
</div>
<p><b>See also </b><a href="qwebview.html">QWebView</a> and QGraphicsTextItem.</p>
<!-- @@@QGraphicsWebView -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$icon-prop$$$icon$$$iconChanged -->
<h3 class="fn"><a name="icon-prop"></a><span class="name">icon</span> : const <span class="type">QIcon</span></h3>
<p>This property holds the icon associated with the web page currently viewed.</p>
<p>By default, this property contains a null icon.</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>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>iconChanged</b></span>()</td></tr>
</table>
<p><b>See also </b>iconChanged() and <a href="qwebsettings.html#iconForUrl">QWebSettings::iconForUrl</a>().</p>
<!-- @@@icon -->
<!-- $$$modified-prop$$$isModified -->
<h3 class="fn"><a name="modified-prop"></a><span class="name">modified</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the document was modified by the user.</p>
<p>Parts of HTML documents can be editable for example through the <tt>contenteditable</tt> attribute on HTML elements.</p>
<p>By default, this property is false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isModified</b></span>() const</td></tr>
</table>
<!-- @@@modified -->
<!-- $$$renderHints-prop$$$renderHints$$$setRenderHintsQPainter::RenderHints -->
<h3 class="fn"><a name="renderHints-prop"></a><span class="name">renderHints</span> : <span class="type">QPainter::RenderHints</span></h3>
<p>This property holds the default render hints for the view.</p>
<p>These hints are used to initialize QPainter before painting the Web page.</p>
<p>QPainter::TextAntialiasing and QPainter::SmoothPixmapTransform are enabled by default and will be used to render the item in addition of what has been set on the painter given by QGraphicsScene.</p>
<p>This property was introduced in Qt 4.8.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QPainter::RenderHints </td><td class="memItemRight bottomAlign"><span class="name"><b>renderHints</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRenderHints</b></span>(QPainter::RenderHints<i> hints</i>)</td></tr>
</table>
<p><b>See also </b>QPainter::renderHints().</p>
<!-- @@@renderHints -->
<!-- $$$resizesToContents-prop$$$resizesToContents$$$setResizesToContentsbool -->
<h3 class="fn"><a name="resizesToContents-prop"></a><span class="name">resizesToContents</span> : <span class="type">bool</span></h3>
<p>This property holds whether the size of the QGraphicsWebView and its viewport changes to match the contents size.</p>
<p>If this property is set, the <a href="qgraphicswebview.html">QGraphicsWebView</a> will automatically change its size to match the size of the main frame contents. As a result the top level frame will never have scrollbars. It will also make CSS fixed positioning to behave like absolute positioning with elements positioned relative to the document instead of the viewport.</p>
<p>This property should be used in conjunction with the <a href="qwebpage.html#preferredContentsSize-prop">QWebPage::preferredContentsSize</a> property. If not explicitly set, the preferredContentsSize is automatically set to a reasonable value.</p>
<p>This property was introduced in Qt 4.7.</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>resizesToContents</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResizesToContents</b></span>(bool<i> enabled</i>)</td></tr>
</table>
<p><b>See also </b><a href="qwebpage.html#preferredContentsSize-prop">QWebPage::setPreferredContentsSize</a>().</p>
<!-- @@@resizesToContents -->
<!-- $$$tiledBackingStoreFrozen-prop$$$isTiledBackingStoreFrozen$$$setTiledBackingStoreFrozenbool -->
<h3 class="fn"><a name="tiledBackingStoreFrozen-prop"></a><span class="name">tiledBackingStoreFrozen</span> : <span class="type">bool</span></h3>
<p>This property holds whether the tiled backing store updates its contents.</p>
<p>If the tiled backing store is enabled using <a href="qwebsettings.html#WebAttribute-enum">QWebSettings::TiledBackingStoreEnabled</a> attribute, this property can be used to disable backing store updates temporarily. This can be useful for example for running a smooth animation that changes the scale of the <a href="qgraphicswebview.html">QGraphicsWebView</a>.</p>
<p>When the backing store is unfrozen, its contents will be automatically updated to match the current state of the document. If the <a href="qgraphicswebview.html">QGraphicsWebView</a> scale was changed, the backing store is also re-rendered using the new scale.</p>
<p>If the tiled backing store is not enabled, this property does nothing.</p>
<p>This property was introduced in Qt 4.7.</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>isTiledBackingStoreFrozen</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTiledBackingStoreFrozen</b></span>(bool<i> frozen</i>)</td></tr>
</table>
<p><b>See also </b><a href="qwebsettings.html#WebAttribute-enum">QWebSettings::TiledBackingStoreEnabled</a> and QGraphicsObject::scale.</p>
<!-- @@@tiledBackingStoreFrozen -->
<!-- $$$title-prop$$$title$$$titleChangedconstQString& -->
<h3 class="fn"><a name="title-prop"></a><span class="name">title</span> : const <span class="type">QString</span></h3>
<p>This property holds the title of the web page currently viewed.</p>
<p>By default, this property contains an empty string.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>title</b></span>() const</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>titleChanged</b></span>(const QString &<i> title</i>)</td></tr>
</table>
<p><b>See also </b>titleChanged().</p>
<!-- @@@title -->
<!-- $$$url-prop$$$url$$$setUrlconstQUrl&$$$urlChangedconstQUrl& -->
<h3 class="fn"><a name="url-prop"></a><span class="name">url</span> : <span class="type">QUrl</span></h3>
<p>This property holds the url of the web page 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 &)</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>urlChanged</b></span>(const QUrl &<i> url</i>)</td></tr>
</table>
<p><b>See also </b><a href="qgraphicswebview.html#load">load</a>() and urlChanged().</p>
<!-- @@@url -->
<!-- $$$zoomFactor-prop$$$zoomFactor$$$setZoomFactorqreal -->
<h3 class="fn"><a name="zoomFactor-prop"></a><span class="name">zoomFactor</span> : <span class="type">qreal</span></h3>
<p>This property holds the zoom factor for the view.</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)</td></tr>
</table>
<!-- @@@zoomFactor -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGraphicsWebView[overload1]$$$QGraphicsWebViewQGraphicsItem* -->
<h3 class="fn"><a name="QGraphicsWebView"></a>QGraphicsWebView::<span class="name">QGraphicsWebView</span>(<span class="type">QGraphicsItem</span> *<i> parent</i> = 0)</h3>
<p>Constructs an empty <a href="qgraphicswebview.html">QGraphicsWebView</a> with parent <i>parent</i>.</p>
<p><b>See also </b><a href="qgraphicswebview.html#load">load</a>().</p>
<!-- @@@QGraphicsWebView -->
<!-- $$$~QGraphicsWebView[overload1]$$$~QGraphicsWebView -->
<h3 class="fn"><a name="dtor.QGraphicsWebView"></a>QGraphicsWebView::<span class="name">~QGraphicsWebView</span>()</h3>
<p>Destroys the item.</p>
<!-- @@@~QGraphicsWebView -->
<!-- $$$back[overload1]$$$back -->
<h3 class="fn"><a name="back"></a><span class="type">void</span> QGraphicsWebView::<span class="name">back</span>()<tt> [slot]</tt></h3>
<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><b>See also </b><a href="qgraphicswebview.html#forward">forward</a>().</p>
<!-- @@@back -->
<!-- $$$contextMenuEvent[overload1]$$$contextMenuEventQGraphicsSceneContextMenuEvent* -->
<h3 class="fn"><a name="contextMenuEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">contextMenuEvent</span>(<span class="type">QGraphicsSceneContextMenuEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@contextMenuEvent -->
<!-- $$$dragEnterEvent[overload1]$$$dragEnterEventQGraphicsSceneDragDropEvent* -->
<h3 class="fn"><a name="dragEnterEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">dragEnterEvent</span>(<span class="type">QGraphicsSceneDragDropEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dragEnterEvent -->
<!-- $$$dragLeaveEvent[overload1]$$$dragLeaveEventQGraphicsSceneDragDropEvent* -->
<h3 class="fn"><a name="dragLeaveEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">dragLeaveEvent</span>(<span class="type">QGraphicsSceneDragDropEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dragLeaveEvent -->
<!-- $$$dragMoveEvent[overload1]$$$dragMoveEventQGraphicsSceneDragDropEvent* -->
<h3 class="fn"><a name="dragMoveEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">dragMoveEvent</span>(<span class="type">QGraphicsSceneDragDropEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dragMoveEvent -->
<!-- $$$dropEvent[overload1]$$$dropEventQGraphicsSceneDragDropEvent* -->
<h3 class="fn"><a name="dropEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">dropEvent</span>(<span class="type">QGraphicsSceneDragDropEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dropEvent -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QGraphicsWebView::<span class="name">event</span>(<span class="type">QEvent</span> *<i> event</i>)<tt> [virtual]</tt></h3>
<!-- @@@event -->
<!-- $$$findText[overload1]$$$findTextconstQString&QWebPage::FindFlags -->
<h3 class="fn"><a name="findText"></a><span class="type">bool</span> QGraphicsWebView::<span class="name">findText</span>(const <span class="type">QString</span> &<i> subString</i>, <span class="type"><a href="qwebpage.html#FindFlag-enum">QWebPage::FindFlags</a></span><i> options</i> = 0)</h3>
<p>Finds the specified string, <i>subString</i>, in the page, using the given <i>options</i>.</p>
<p>If the 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><b>See also </b><a href="qwebpage.html#selectedText-prop">QWebPage::selectedText</a>() and <a href="qwebpage.html#selectionChanged">QWebPage::selectionChanged</a>().</p>
<!-- @@@findText -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">focusInEvent</span>(<span class="type">QFocusEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@focusInEvent -->
<!-- $$$focusNextPrevChild[overload1]$$$focusNextPrevChildbool -->
<h3 class="fn"><a name="focusNextPrevChild"></a><span class="type">bool</span> QGraphicsWebView::<span class="name">focusNextPrevChild</span>(<span class="type">bool</span><i> next</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@focusNextPrevChild -->
<!-- $$$focusOutEvent[overload1]$$$focusOutEventQFocusEvent* -->
<h3 class="fn"><a name="focusOutEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">focusOutEvent</span>(<span class="type">QFocusEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@focusOutEvent -->
<!-- $$$forward[overload1]$$$forward -->
<h3 class="fn"><a name="forward"></a><span class="type">void</span> QGraphicsWebView::<span class="name">forward</span>()<tt> [slot]</tt></h3>
<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><b>See also </b><a href="qgraphicswebview.html#back">back</a>().</p>
<!-- @@@forward -->
<!-- $$$history[overload1]$$$history -->
<h3 class="fn"><a name="history"></a><span class="type"><a href="qwebhistory.html">QWebHistory</a></span> * QGraphicsWebView::<span class="name">history</span>() const</h3>
<p>Returns a pointer to the view's history of navigated web pages.</p>
<p>It is equivalent to</p>
<pre class="cpp"> view<span class="operator">-</span><span class="operator">></span>page()<span class="operator">-</span><span class="operator">></span>history();</pre>
<!-- @@@history -->
<!-- $$$hoverLeaveEvent[overload1]$$$hoverLeaveEventQGraphicsSceneHoverEvent* -->
<h3 class="fn"><a name="hoverLeaveEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">hoverLeaveEvent</span>(<span class="type">QGraphicsSceneHoverEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@hoverLeaveEvent -->
<!-- $$$hoverMoveEvent[overload1]$$$hoverMoveEventQGraphicsSceneHoverEvent* -->
<h3 class="fn"><a name="hoverMoveEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">hoverMoveEvent</span>(<span class="type">QGraphicsSceneHoverEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@hoverMoveEvent -->
<!-- $$$inputMethodEvent[overload1]$$$inputMethodEventQInputMethodEvent* -->
<h3 class="fn"><a name="inputMethodEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">inputMethodEvent</span>(<span class="type">QInputMethodEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@inputMethodEvent -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type">QVariant</span> QGraphicsWebView::<span class="name">inputMethodQuery</span>(<span class="type">Qt::InputMethodQuery</span><i> query</i>) const<tt> [virtual]</tt></h3>
<!-- @@@inputMethodQuery -->
<!-- $$$itemChange[overload1]$$$itemChangeGraphicsItemChangeconstQVariant& -->
<h3 class="fn"><a name="itemChange"></a><span class="type">QVariant</span> QGraphicsWebView::<span class="name">itemChange</span>(<span class="type">GraphicsItemChange</span><i> change</i>, const <span class="type">QVariant</span> &<i> value</i>)<tt> [virtual]</tt></h3>
<!-- @@@itemChange -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">keyPressEvent</span>(<span class="type">QKeyEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@keyPressEvent -->
<!-- $$$keyReleaseEvent[overload1]$$$keyReleaseEventQKeyEvent* -->
<h3 class="fn"><a name="keyReleaseEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">keyReleaseEvent</span>(<span class="type">QKeyEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@keyReleaseEvent -->
<!-- $$$linkClicked[overload1]$$$linkClickedconstQUrl& -->
<h3 class="fn"><a name="linkClicked"></a><span class="type">void</span> QGraphicsWebView::<span class="name">linkClicked</span>(const <span class="type">QUrl</span> &<i> url</i>)<tt> [signal]</tt></h3>
<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><b>See also </b><a href="qwebpage.html#linkDelegationPolicy-prop">QWebPage::linkDelegationPolicy</a>().</p>
<!-- @@@linkClicked -->
<!-- $$$load[overload1]$$$loadconstQUrl& -->
<h3 class="fn"><a name="load"></a><span class="type">void</span> QGraphicsWebView::<span class="name">load</span>(const <span class="type">QUrl</span> &<i> url</i>)</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><b>See also </b><a href="qgraphicswebview.html#url-prop">setUrl</a>(), <a href="qgraphicswebview.html#url-prop">url</a>(), and <a href="qgraphicswebview.html#url-prop">urlChanged</a>().</p>
<!-- @@@load -->
<!-- $$$load$$$loadconstQNetworkRequest&QNetworkAccessManager::OperationconstQByteArray& -->
<h3 class="fn"><a name="load-2"></a><span class="type">void</span> QGraphicsWebView::<span class="name">load</span>(const <span class="type">QNetworkRequest</span> &<i> request</i>, <span class="type">QNetworkAccessManager::Operation</span><i> operation</i> = QNetworkAccessManager::GetOperation, const <span class="type">QByteArray</span> &<i> body</i> = 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><b>See also </b><a href="qgraphicswebview.html#url-prop">url</a>() and <a href="qgraphicswebview.html#url-prop">urlChanged</a>().</p>
<!-- @@@load -->
<!-- $$$loadFinished[overload1]$$$loadFinishedbool -->
<h3 class="fn"><a name="loadFinished"></a><span class="type">void</span> QGraphicsWebView::<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 the page is finished. <i>ok</i> will indicate whether the load was successful or any error occurred.</p>
<p><b>See also </b><a href="qgraphicswebview.html#loadStarted">loadStarted</a>().</p>
<!-- @@@loadFinished -->
<!-- $$$loadProgress[overload1]$$$loadProgressint -->
<h3 class="fn"><a name="loadProgress"></a><span class="type">void</span> QGraphicsWebView::<span class="name">loadProgress</span>(<span class="type">int</span><i> progress</i>)<tt> [signal]</tt></h3>
<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 QProgressBar.</p>
<p><b>See also </b><a href="qgraphicswebview.html#loadStarted">loadStarted</a>() and <a href="qgraphicswebview.html#loadFinished">loadFinished</a>().</p>
<!-- @@@loadProgress -->
<!-- $$$loadStarted[overload1]$$$loadStarted -->
<h3 class="fn"><a name="loadStarted"></a><span class="type">void</span> QGraphicsWebView::<span class="name">loadStarted</span>()<tt> [signal]</tt></h3>
<p>This signal is emitted when a new load of the page is started.</p>
<p><b>See also </b><a href="qgraphicswebview.html#loadProgress">loadProgress</a>() and <a href="qgraphicswebview.html#loadFinished">loadFinished</a>().</p>
<!-- @@@loadStarted -->
<!-- $$$mouseDoubleClickEvent[overload1]$$$mouseDoubleClickEventQGraphicsSceneMouseEvent* -->
<h3 class="fn"><a name="mouseDoubleClickEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">mouseDoubleClickEvent</span>(<span class="type">QGraphicsSceneMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mouseDoubleClickEvent -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQGraphicsSceneMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">mouseMoveEvent</span>(<span class="type">QGraphicsSceneMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQGraphicsSceneMouseEvent* -->
<h3 class="fn"><a name="mousePressEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">mousePressEvent</span>(<span class="type">QGraphicsSceneMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQGraphicsSceneMouseEvent* -->
<h3 class="fn"><a name="mouseReleaseEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">mouseReleaseEvent</span>(<span class="type">QGraphicsSceneMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mouseReleaseEvent -->
<!-- $$$page[overload1]$$$page -->
<h3 class="fn"><a name="page"></a><span class="type"><a href="qwebpage.html">QWebPage</a></span> * QGraphicsWebView::<span class="name">page</span>() const</h3>
<p>Returns a pointer to the underlying web page.</p>
<p><b>See also </b><a href="qgraphicswebview.html#setPage">setPage</a>().</p>
<!-- @@@page -->
<!-- $$$pageAction[overload1]$$$pageActionQWebPage::WebAction -->
<h3 class="fn"><a name="pageAction"></a><span class="type">QAction</span> * QGraphicsWebView::<span class="name">pageAction</span>(<span class="type"><a href="qwebpage.html#WebAction-enum">QWebPage::WebAction</a></span><i> action</i>) const</h3>
<p>Returns a pointer to a QAction that encapsulates the specified web action <i>action</i>.</p>
<!-- @@@pageAction -->
<!-- $$$paint[overload1]$$$paintQPainter*constQStyleOptionGraphicsItem*QWidget* -->
<h3 class="fn"><a name="paint"></a><span class="type">void</span> QGraphicsWebView::<span class="name">paint</span>(<span class="type">QPainter</span> *<i> painter</i>, const <span class="type">QStyleOptionGraphicsItem</span> *<i> option</i>, <span class="type">QWidget</span> *<i> widget</i> = 0)<tt> [virtual]</tt></h3>
<!-- @@@paint -->
<!-- $$$reload[overload1]$$$reload -->
<h3 class="fn"><a name="reload"></a><span class="type">void</span> QGraphicsWebView::<span class="name">reload</span>()<tt> [slot]</tt></h3>
<p>Reloads the current document.</p>
<p><b>See also </b><a href="qgraphicswebview.html#stop">stop</a>() and <a href="qgraphicswebview.html#loadStarted">loadStarted</a>().</p>
<!-- @@@reload -->
<!-- $$$sceneEvent[overload1]$$$sceneEventQEvent* -->
<h3 class="fn"><a name="sceneEvent"></a><span class="type">bool</span> QGraphicsWebView::<span class="name">sceneEvent</span>(<span class="type">QEvent</span> *<i> event</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@sceneEvent -->
<!-- $$$setContent[overload1]$$$setContentconstQByteArray&constQString&constQUrl& -->
<h3 class="fn"><a name="setContent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">setContent</span>(const <span class="type">QByteArray</span> &<i> data</i>, const <span class="type">QString</span> &<i> mimeType</i> = QString(), const <span class="type">QUrl</span> &<i> baseUrl</i> = 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><b>See also </b><a href="qgraphicswebview.html#load">load</a>(), <a href="qgraphicswebview.html#setHtml">setHtml</a>(), and <a href="qwebframe.html#toHtml">QWebFrame::toHtml</a>().</p>
<!-- @@@setContent -->
<!-- $$$setGeometry[overload1]$$$setGeometryconstQRectF& -->
<h3 class="fn"><a name="setGeometry"></a><span class="type">void</span> QGraphicsWebView::<span class="name">setGeometry</span>(const <span class="type">QRectF</span> &<i> rect</i>)<tt> [virtual]</tt></h3>
<!-- @@@setGeometry -->
<!-- $$$setHtml[overload1]$$$setHtmlconstQString&constQUrl& -->
<h3 class="fn"><a name="setHtml"></a><span class="type">void</span> QGraphicsWebView::<span class="name">setHtml</span>(const <span class="type">QString</span> &<i> html</i>, const <span class="type">QUrl</span> &<i> baseUrl</i> = 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, 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. Alternatively, the encoding can also be specified by the web server.</p>
<p>This is a convenience function equivalent to setContent(html, "text/html", baseUrl).</p>
<p><b>Warning:</b> This function works only for HTML, for other mime types (i.e. XHTML, SVG) <a href="qgraphicswebview.html#setContent">setContent</a>() should be used instead.</p>
<p><b>See also </b><a href="qgraphicswebview.html#load">load</a>(), <a href="qgraphicswebview.html#setContent">setContent</a>(), <a href="qwebframe.html#toHtml">QWebFrame::toHtml</a>(), and <a href="qwebframe.html#setContent">QWebFrame::setContent</a>().</p>
<!-- @@@setHtml -->
<!-- $$$setPage[overload1]$$$setPageQWebPage* -->
<h3 class="fn"><a name="setPage"></a><span class="type">void</span> QGraphicsWebView::<span class="name">setPage</span>(<span class="type"><a href="qwebpage.html">QWebPage</a></span> *<i> page</i>)</h3>
<p>Makes <i>page</i> the new web page of the web graphicsitem.</p>
<p>The parent QObject 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><b>See also </b><a href="qgraphicswebview.html#page">page</a>().</p>
<!-- @@@setPage -->
<!-- $$$setRenderHint[overload1]$$$setRenderHintQPainter::RenderHintbool -->
<h3 class="fn"><a name="setRenderHint"></a><span class="type">void</span> QGraphicsWebView::<span class="name">setRenderHint</span>(<span class="type">QPainter::RenderHint</span><i> hint</i>, <span class="type">bool</span><i> enabled</i> = true)</h3>
<p>If <i>enabled</i> is true, enables the specified render <i>hint</i>; otherwise disables it.</p>
<p>This function was introduced in Qt 4.8.</p>
<p><b>See also </b><a href="qgraphicswebview.html#renderHints-prop">renderHints</a> and QPainter::renderHints().</p>
<!-- @@@setRenderHint -->
<!-- $$$settings[overload1]$$$settings -->
<h3 class="fn"><a name="settings"></a><span class="type"><a href="qwebsettings.html">QWebSettings</a></span> * QGraphicsWebView::<span class="name">settings</span>() const</h3>
<p>Returns a pointer to the view/page specific settings object.</p>
<p>It is equivalent to</p>
<pre class="cpp"> view<span class="operator">-</span><span class="operator">></span>page()<span class="operator">-</span><span class="operator">></span>settings();</pre>
<p><b>See also </b><a href="qwebsettings.html#globalSettings">QWebSettings::globalSettings</a>().</p>
<!-- @@@settings -->
<!-- $$$sizeHint[overload1]$$$sizeHintQt::SizeHintconstQSizeF& -->
<h3 class="fn"><a name="sizeHint"></a><span class="type">QSizeF</span> QGraphicsWebView::<span class="name">sizeHint</span>(<span class="type">Qt::SizeHint</span><i> which</i>, const <span class="type">QSizeF</span> &<i> constraint</i>) const<tt> [virtual]</tt></h3>
<!-- @@@sizeHint -->
<!-- $$$statusBarMessage[overload1]$$$statusBarMessageconstQString& -->
<h3 class="fn"><a name="statusBarMessage"></a><span class="type">void</span> QGraphicsWebView::<span class="name">statusBarMessage</span>(const <span class="type">QString</span> &<i> text</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted when the statusbar <i>text</i> is changed by the page.</p>
<!-- @@@statusBarMessage -->
<!-- $$$stop[overload1]$$$stop -->
<h3 class="fn"><a name="stop"></a><span class="type">void</span> QGraphicsWebView::<span class="name">stop</span>()<tt> [slot]</tt></h3>
<p>Convenience slot that stops loading the document.</p>
<p><b>See also </b><a href="qgraphicswebview.html#reload">reload</a>() and <a href="qgraphicswebview.html#loadFinished">loadFinished</a>().</p>
<!-- @@@stop -->
<!-- $$$triggerPageAction[overload1]$$$triggerPageActionQWebPage::WebActionbool -->
<h3 class="fn"><a name="triggerPageAction"></a><span class="type">void</span> QGraphicsWebView::<span class="name">triggerPageAction</span>(<span class="type"><a href="qwebpage.html#WebAction-enum">QWebPage::WebAction</a></span><i> action</i>, <span class="type">bool</span><i> checked</i> = 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><b>See also </b><a href="qgraphicswebview.html#pageAction">pageAction</a>().</p>
<!-- @@@triggerPageAction -->
<!-- $$$updateGeometry[overload1]$$$updateGeometry -->
<h3 class="fn"><a name="updateGeometry"></a><span class="type">void</span> QGraphicsWebView::<span class="name">updateGeometry</span>()<tt> [virtual]</tt></h3>
<!-- @@@updateGeometry -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQGraphicsSceneWheelEvent* -->
<h3 class="fn"><a name="wheelEvent"></a><span class="type">void</span> QGraphicsWebView::<span class="name">wheelEvent</span>(<span class="type">QGraphicsSceneWheelEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@wheelEvent -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|