This file is indexed.

/usr/share/qt5/doc/qtwebkit/qwebview.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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<?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" />
<!-- qwebview.cpp -->
  <title>QWebView 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>QWebView</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="#elements-of-qwebview">Elements of QWebView</a></li>
</ul>
</div>
<h1 class="title">QWebView Class</h1>
<!-- $$$QWebView-brief -->
<p>The QWebView class provides a widget that is used to view and edit web documents. <a href="#details">More...</a></p>
<!-- @@@QWebView -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;QWebView&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.4</td></tr></table><ul>
<li><a href="qwebview-members.html">List of all members, including inherited members</a></li>
<li><a href="qwebview-obsolete.html">Obsolete 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="qwebview.html#hasSelection-prop">hasSelection</a></b> : const bool</li>
<li class="fn"><b><a href="qwebview.html#icon-prop">icon</a></b> : const QIcon</li>
<li class="fn"><b><a href="qwebview.html#modified-prop">modified</a></b> : const bool</li>
<li class="fn"><b><a href="qwebview.html#renderHints-prop">renderHints</a></b> : QPainter::RenderHints</li>
<li class="fn"><b><a href="qwebview.html#selectedHtml-prop">selectedHtml</a></b> : const QString</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qwebview.html#selectedText-prop">selectedText</a></b> : const QString</li>
<li class="fn"><b><a href="qwebview.html#title-prop">title</a></b> : const QString</li>
<li class="fn"><b><a href="qwebview.html#url-prop">url</a></b> : QUrl</li>
<li class="fn"><b><a href="qwebview.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="qwebview.html#QWebView">QWebView</a></b>(QWidget *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#dtor.QWebView">~QWebView</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#event">event</a></b>(QEvent *<i> e</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#findText">findText</a></b>(const QString &amp;<i> subString</i>, QWebPage::FindFlags<i> options</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#hasSelection-prop">hasSelection</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebHistory * </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#history">history</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QIcon </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#icon-prop">icon</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#inputMethodQuery">inputMethodQuery</a></b>(Qt::InputMethodQuery<i> property</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#modified-prop">isModified</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.html#load-2">load</a></b>(const QNetworkRequest &amp;<i> request</i>, QNetworkAccessManager::Operation<i> operation</i> = QNetworkAccessManager::GetOperation, const QByteArray &amp;<i> body</i> = QByteArray())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebPage * </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#page">page</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#pageAction">pageAction</a></b>(QWebPage::WebAction<i> action</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPainter::RenderHints </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#renderHints-prop">renderHints</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#selectedHtml-prop">selectedHtml</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#selectedText-prop">selectedText</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.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="qwebview.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="qwebview.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="qwebview.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="qwebview.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="qwebview.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="qwebview.html#zoomFactor-prop">setZoomFactor</a></b>(qreal<i> factor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebSettings * </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#settings">settings</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#sizeHint">sizeHint</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#textSizeMultiplier">textSizeMultiplier</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#title-prop">title</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#triggerPageAction">triggerPageAction</a></b>(QWebPage::WebAction<i> action</i>, bool<i> checked</i> = false)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#url-prop">url</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.html#back">back</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#forward">forward</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#print">print</a></b>(QPrinter *<i> printer</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#reload">reload</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.html#iconChanged">iconChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#linkClicked">linkClicked</a></b>(const QUrl &amp;<i> url</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.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="qwebview.html#loadStarted">loadStarted</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#selectionChanged">selectionChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#statusBarMessage">statusBarMessage</a></b>(const QString &amp;<i> text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.html#urlChanged">urlChanged</a></b>(const QUrl &amp;<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="qwebview.html#changeEvent">changeEvent</a></b>(QEvent *<i> e</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#contextMenuEvent">contextMenuEvent</a></b>(QContextMenuEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QWebView * </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#createWindow">createWindow</a></b>(QWebPage::WebWindowType<i> type</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#dragEnterEvent">dragEnterEvent</a></b>(QDragEnterEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#dragLeaveEvent">dragLeaveEvent</a></b>(QDragLeaveEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#dragMoveEvent">dragMoveEvent</a></b>(QDragMoveEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#dropEvent">dropEvent</a></b>(QDropEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.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="qwebview.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="qwebview.html#inputMethodEvent">inputMethodEvent</a></b>(QInputMethodEvent *<i> e</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.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="qwebview.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="qwebview.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b>(QMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#mouseMoveEvent">mouseMoveEvent</a></b>(QMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#mousePressEvent">mousePressEvent</a></b>(QMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#mouseReleaseEvent">mouseReleaseEvent</a></b>(QMouseEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#paintEvent">paintEvent</a></b>(QPaintEvent *<i> ev</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#resizeEvent">resizeEvent</a></b>(QResizeEvent *<i> e</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebview.html#wheelEvent">wheelEvent</a></b>(QWheelEvent *<i> ev</i>)</td></tr>
</table>
<a name="details"></a>
<!-- $$$QWebView-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebView class provides a widget that is used to view and edit web documents.</p>
<p>QWebView is the main widget component of the Qt WebKit web browsing module. It can be used in various applications to display web content live from the Internet.</p>
<p>A web site can be loaded onto QWebView with the <a href="qwebview.html#load">load</a>() function. Like all Qt widgets, the show() function must be invoked in order to display QWebView. The snippet below illustrates this:</p>
<pre class="cpp">    <span class="type">QWebView</span> <span class="operator">*</span>view <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QWebView</span>(parent);
    view<span class="operator">-</span><span class="operator">&gt;</span>load(<span class="type">QUrl</span>(<span class="string">&quot;http://qt-project.org&quot;</span>));
    view<span class="operator">-</span><span class="operator">&gt;</span>show();</pre>
<p>Alternatively, <a href="qwebview.html#url-prop">setUrl</a>() can also be used to load a web site. If you have the HTML content readily available, you can use <a href="qwebview.html#setHtml">setHtml</a>() instead.</p>
<p>The <a href="qwebview.html#loadStarted">loadStarted</a>() signal is emitted when the view begins loading. The <a href="qwebview.html#loadProgress">loadProgress</a>() signal, on the other hand, is emitted whenever an element of the web view completes loading, such as an embedded image, a script, etc. Finally, the <a href="qwebview.html#loadFinished">loadFinished</a>() signal is emitted when the view has loaded completely. It's argument - either <tt>true</tt> or <tt>false</tt> - indicates load success or failure.</p>
<p>The <a href="qwebview.html#page">page</a>() function returns a pointer to the web page object. See <a href="#elements-of-qwebview">Elements of QWebView</a> for an explanation of how the web page is related to the view. To modify your web view's settings, you can access the <a href="qwebsettings.html">QWebSettings</a> object with the <a href="qwebview.html#settings">settings</a>() function. With <a href="qwebsettings.html">QWebSettings</a>, you can change the default fonts, enable or disable features such as JavaScript and plugins.</p>
<p>The title of an HTML document can be accessed with the <a href="qwebview.html#title-prop">title</a>() property. Additionally, a web site may also specify an icon, which can be accessed using the <a href="qwebview.html#icon-prop">icon</a>() property. If the title or the icon changes, the corresponding <a href="qwebview.html#titleChanged">titleChanged</a>() and <a href="qwebview.html#iconChanged">iconChanged</a>() signals will be emitted. The <a href="qwebview.html#textSizeMultiplier">textSizeMultiplier</a>() property can be used to change the overall size of the text displayed in the web view.</p>
<p>If you require a custom context menu, you can implement it by reimplementing contextMenuEvent() and populating your QMenu with the actions obtained from <a href="qwebview.html#pageAction">pageAction</a>(). More functionality such as reloading the view, copying selected text to the clipboard, or pasting into the view, is also encapsulated within the QAction objects returned by <a href="qwebview.html#pageAction">pageAction</a>(). These actions can be programmatically triggered using <a href="qwebview.html#triggerPageAction">triggerPageAction</a>(). Alternatively, the actions can be added to a toolbar or a menu directly. QWebView maintains the state of the returned actions but allows modification of action properties such as text or icon.</p>
<p>A QWebView can be printed onto a QPrinter using the <a href="qwebview.html#print">print</a>() function. This function is marked as a slot and can be conveniently connected to QPrintPreviewDialog's paintRequested() signal.</p>
<p>If you want to provide support for web sites that allow the user to open new windows, such as pop-up windows, you can subclass QWebView and reimplement the <a href="qwebview.html#createWindow">createWindow</a>() function.</p>
<a name="elements-of-qwebview"></a>
<h3>Elements of QWebView</h3>
<p>QWebView consists of other objects such as <a href="qwebframe.html">QWebFrame</a> and <a href="qwebpage.html">QWebPage</a>. The flowchart below shows these elements are related.</p>
<p class="centerAlign"><img src="images/qwebview-diagram.png" alt="" /></p><p><b>Note: </b>It is possible to use <a href="qwebpage.html">QWebPage</a> and <a href="qwebframe.html">QWebFrame</a>, without using QWebView, if you do not require QWidget attributes. Nevertheless, Qt WebKit depends on QtGui, so you should use a QApplication instead of QCoreApplication.</p></div>
<p><b>See also </b>Previewer Example, Web Browser, Form Extractor Example, Google Chat Example, and Fancy Browser Example.</p>
<!-- @@@QWebView -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$hasSelection-prop$$$hasSelection -->
<h3 class="fn"><a name="hasSelection-prop"></a><span class="name">hasSelection</span> : const <span class="type">bool</span></h3>
<p>This property holds whether this page contains selected content or not.</p>
<p>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>hasSelection</b></span>() const</td></tr>
</table>
<p><b>See also </b><a href="qwebview.html#selectionChanged">selectionChanged</a>().</p>
<!-- @@@hasSelection -->
<!-- $$$icon-prop$$$icon -->
<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>See also </b><a href="qwebview.html#iconChanged">iconChanged</a>() 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.</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"> 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 -->
<!-- $$$selectedHtml-prop$$$selectedHtml -->
<h3 class="fn"><a name="selectedHtml-prop"></a><span class="name">selectedHtml</span> : const <span class="type">QString</span></h3>
<p>This property holds the HTML currently selected.</p>
<p>By default, this property contains an empty string.</p>
<p>This property was introduced in  Qt 4.8.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedHtml</b></span>() const</td></tr>
</table>
<p><b>See also </b><a href="qwebview.html#findText">findText</a>(), <a href="qwebview.html#selectionChanged">selectionChanged</a>(), and <a href="qwebview.html#selectedText-prop">selectedText</a>().</p>
<!-- @@@selectedHtml -->
<!-- $$$selectedText-prop$$$selectedText -->
<h3 class="fn"><a name="selectedText-prop"></a><span class="name">selectedText</span> : const <span class="type">QString</span></h3>
<p>This property holds the text currently selected.</p>
<p>By default, this property contains an empty string.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedText</b></span>() const</td></tr>
</table>
<p><b>See also </b><a href="qwebview.html#findText">findText</a>(), <a href="qwebview.html#selectionChanged">selectionChanged</a>(), and <a href="qwebview.html#selectedHtml-prop">selectedHtml</a>().</p>
<!-- @@@selectedText -->
<!-- $$$title-prop$$$title -->
<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>See also </b><a href="qwebview.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">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 &amp;<i> url</i>)</td></tr>
</table>
<p><b>See also </b><a href="qwebview.html#load">load</a>() and <a href="qwebview.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">qreal</span></h3>
<p>This property holds the zoom factor for the view.</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>
<!-- $$$QWebView[overload1]$$$QWebViewQWidget* -->
<h3 class="fn"><a name="QWebView"></a>QWebView::<span class="name">QWebView</span>(<span class="type">QWidget</span> *<i> parent</i> = 0)</h3>
<p>Constructs an empty <a href="qwebview.html">QWebView</a> with parent <i>parent</i>.</p>
<p><b>See also </b><a href="qwebview.html#load">load</a>().</p>
<!-- @@@QWebView -->
<!-- $$$~QWebView[overload1]$$$~QWebView -->
<h3 class="fn"><a name="dtor.QWebView"></a>QWebView::<span class="name">~QWebView</span>()<tt> [virtual]</tt></h3>
<p>Destroys the web view.</p>
<!-- @@@~QWebView -->
<!-- $$$back[overload1]$$$back -->
<h3 class="fn"><a name="back"></a><span class="type">void</span> QWebView::<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>It is equivalent to</p>
<pre class="cpp">    view<span class="operator">-</span><span class="operator">&gt;</span>page()<span class="operator">-</span><span class="operator">&gt;</span>triggerPageAction(<span class="type"><a href="qwebpage.html">QWebPage</a></span><span class="operator">::</span>GoBack);</pre>
<p><b>See also </b><a href="qwebview.html#forward">forward</a>() and <a href="qwebview.html#pageAction">pageAction</a>().</p>
<!-- @@@back -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn"><a name="changeEvent"></a><span class="type">void</span> QWebView::<span class="name">changeEvent</span>(<span class="type">QEvent</span> *<i> e</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@changeEvent -->
<!-- $$$contextMenuEvent[overload1]$$$contextMenuEventQContextMenuEvent* -->
<h3 class="fn"><a name="contextMenuEvent"></a><span class="type">void</span> QWebView::<span class="name">contextMenuEvent</span>(<span class="type">QContextMenuEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@contextMenuEvent -->
<!-- $$$createWindow[overload1]$$$createWindowQWebPage::WebWindowType -->
<h3 class="fn"><a name="createWindow"></a><span class="type">QWebView</span> * QWebView::<span class="name">createWindow</span>(<span class="type"><a href="qwebpage.html#WebWindowType-enum">QWebPage::WebWindowType</a></span><i> type</i>)<tt> [virtual protected]</tt></h3>
<p>This function is called from the createWindow() method of the associated <a href="qwebpage.html">QWebPage</a>, each time the page wants to create a new window of the given <i>type</i>. This might be the result, for example, of a JavaScript request to open a document in a new window.</p>
<p><b>Note: </b>If the createWindow() method of the associated page is reimplemented, this method is not called, unless explicitly done so in the reimplementation.</p><p><b>Note: </b>In the cases when the window creation is being triggered by JavaScript, apart from reimplementing this method application must also set the JavaScriptCanOpenWindows attribute of <a href="qwebsettings.html">QWebSettings</a> to true in order for it to get called.</p><p><b>See also </b><a href="qwebpage.html#createWindow">QWebPage::createWindow</a>() and <a href="qwebpage.html#acceptNavigationRequest">QWebPage::acceptNavigationRequest</a>().</p>
<!-- @@@createWindow -->
<!-- $$$dragEnterEvent[overload1]$$$dragEnterEventQDragEnterEvent* -->
<h3 class="fn"><a name="dragEnterEvent"></a><span class="type">void</span> QWebView::<span class="name">dragEnterEvent</span>(<span class="type">QDragEnterEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dragEnterEvent -->
<!-- $$$dragLeaveEvent[overload1]$$$dragLeaveEventQDragLeaveEvent* -->
<h3 class="fn"><a name="dragLeaveEvent"></a><span class="type">void</span> QWebView::<span class="name">dragLeaveEvent</span>(<span class="type">QDragLeaveEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dragLeaveEvent -->
<!-- $$$dragMoveEvent[overload1]$$$dragMoveEventQDragMoveEvent* -->
<h3 class="fn"><a name="dragMoveEvent"></a><span class="type">void</span> QWebView::<span class="name">dragMoveEvent</span>(<span class="type">QDragMoveEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@dragMoveEvent -->
<!-- $$$dropEvent[overload1]$$$dropEventQDropEvent* -->
<h3 class="fn"><a name="dropEvent"></a><span class="type">void</span> QWebView::<span class="name">dropEvent</span>(<span class="type">QDropEvent</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> QWebView::<span class="name">event</span>(<span class="type">QEvent</span> *<i> e</i>)<tt> [virtual]</tt></h3>
<!-- @@@event -->
<!-- $$$findText[overload1]$$$findTextconstQString&QWebPage::FindFlags -->
<h3 class="fn"><a name="findText"></a><span class="type">bool</span> QWebView::<span class="name">findText</span>(const <span class="type">QString</span> &amp;<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="qwebview.html#selectedText-prop">selectedText</a>() and <a href="qwebview.html#selectionChanged">selectionChanged</a>().</p>
<!-- @@@findText -->
<!-- $$$focusInEvent[overload1]$$$focusInEventQFocusEvent* -->
<h3 class="fn"><a name="focusInEvent"></a><span class="type">void</span> QWebView::<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> QWebView::<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> QWebView::<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> QWebView::<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>It is equivalent to</p>
<pre class="cpp">    view<span class="operator">-</span><span class="operator">&gt;</span>page()<span class="operator">-</span><span class="operator">&gt;</span>triggerPageAction(<span class="type"><a href="qwebpage.html">QWebPage</a></span><span class="operator">::</span>GoForward);</pre>
<p><b>See also </b><a href="qwebview.html#back">back</a>() and <a href="qwebview.html#pageAction">pageAction</a>().</p>
<!-- @@@forward -->
<!-- $$$history[overload1]$$$history -->
<h3 class="fn"><a name="history"></a><span class="type"><a href="qwebhistory.html">QWebHistory</a></span> * QWebView::<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">&gt;</span>page()<span class="operator">-</span><span class="operator">&gt;</span>history();</pre>
<!-- @@@history -->
<!-- $$$iconChanged[overload1]$$$iconChanged -->
<h3 class="fn"><a name="iconChanged"></a><span class="type">void</span> QWebView::<span class="name">iconChanged</span>()<tt> [signal]</tt></h3>
<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><b>See also </b><a href="qwebview.html#icon-prop">icon</a>() and <a href="qwebsettings.html#setIconDatabasePath">QWebSettings::setIconDatabasePath</a>().</p>
<!-- @@@iconChanged -->
<!-- $$$inputMethodEvent[overload1]$$$inputMethodEventQInputMethodEvent* -->
<h3 class="fn"><a name="inputMethodEvent"></a><span class="type">void</span> QWebView::<span class="name">inputMethodEvent</span>(<span class="type">QInputMethodEvent</span> *<i> e</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@inputMethodEvent -->
<!-- $$$inputMethodQuery[overload1]$$$inputMethodQueryQt::InputMethodQuery -->
<h3 class="fn"><a name="inputMethodQuery"></a><span class="type">QVariant</span> QWebView::<span class="name">inputMethodQuery</span>(<span class="type">Qt::InputMethodQuery</span><i> property</i>) const</h3>
<!-- @@@inputMethodQuery -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> QWebView::<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> QWebView::<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> QWebView::<span class="name">linkClicked</span>(const <span class="type">QUrl</span> &amp;<i> url</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the user clicks on a link and the page's 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> QWebView::<span class="name">load</span>(const <span class="type">QUrl</span> &amp;<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="qwebview.html#url-prop">setUrl</a>(), <a href="qwebview.html#url-prop">url</a>(), <a href="qwebview.html#urlChanged">urlChanged</a>(), and QUrl::fromUserInput().</p>
<!-- @@@load -->
<!-- $$$load$$$loadconstQNetworkRequest&QNetworkAccessManager::OperationconstQByteArray& -->
<h3 class="fn"><a name="load-2"></a><span class="type">void</span> QWebView::<span class="name">load</span>(const <span class="type">QNetworkRequest</span> &amp;<i> request</i>, <span class="type">QNetworkAccessManager::Operation</span><i> operation</i> = QNetworkAccessManager::GetOperation, const <span class="type">QByteArray</span> &amp;<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="qwebview.html#url-prop">url</a>() and <a href="qwebview.html#urlChanged">urlChanged</a>().</p>
<!-- @@@load -->
<!-- $$$loadFinished[overload1]$$$loadFinishedbool -->
<h3 class="fn"><a name="loadFinished"></a><span class="type">void</span> QWebView::<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="qwebview.html#loadStarted">loadStarted</a>().</p>
<!-- @@@loadFinished -->
<!-- $$$loadProgress[overload1]$$$loadProgressint -->
<h3 class="fn"><a name="loadProgress"></a><span class="type">void</span> QWebView::<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="qwebview.html#loadStarted">loadStarted</a>() and <a href="qwebview.html#loadFinished">loadFinished</a>().</p>
<!-- @@@loadProgress -->
<!-- $$$loadStarted[overload1]$$$loadStarted -->
<h3 class="fn"><a name="loadStarted"></a><span class="type">void</span> QWebView::<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="qwebview.html#loadProgress">loadProgress</a>() and <a href="qwebview.html#loadFinished">loadFinished</a>().</p>
<!-- @@@loadStarted -->
<!-- $$$mouseDoubleClickEvent[overload1]$$$mouseDoubleClickEventQMouseEvent* -->
<h3 class="fn"><a name="mouseDoubleClickEvent"></a><span class="type">void</span> QWebView::<span class="name">mouseDoubleClickEvent</span>(<span class="type">QMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mouseDoubleClickEvent -->
<!-- $$$mouseMoveEvent[overload1]$$$mouseMoveEventQMouseEvent* -->
<h3 class="fn"><a name="mouseMoveEvent"></a><span class="type">void</span> QWebView::<span class="name">mouseMoveEvent</span>(<span class="type">QMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mouseMoveEvent -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn"><a name="mousePressEvent"></a><span class="type">void</span> QWebView::<span class="name">mousePressEvent</span>(<span class="type">QMouseEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn"><a name="mouseReleaseEvent"></a><span class="type">void</span> QWebView::<span class="name">mouseReleaseEvent</span>(<span class="type">QMouseEvent</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> * QWebView::<span class="name">page</span>() const</h3>
<p>Returns a pointer to the underlying web page.</p>
<p><b>See also </b><a href="qwebview.html#setPage">setPage</a>().</p>
<!-- @@@page -->
<!-- $$$pageAction[overload1]$$$pageActionQWebPage::WebAction -->
<h3 class="fn"><a name="pageAction"></a><span class="type">QAction</span> * QWebView::<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 -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QWebView::<span class="name">paintEvent</span>(<span class="type">QPaintEvent</span> *<i> ev</i>)<tt> [protected]</tt></h3>
<!-- @@@paintEvent -->
<!-- $$$print[overload1]$$$printQPrinter* -->
<h3 class="fn"><a name="print"></a><span class="type">void</span> QWebView::<span class="name">print</span>(<span class="type">QPrinter</span> *<i> printer</i>) const<tt> [slot]</tt></h3>
<p>Prints the main frame to the given <i>printer</i>.</p>
<p><b>See also </b><a href="qwebframe.html#print">QWebFrame::print</a>() and QPrintPreviewDialog.</p>
<!-- @@@print -->
<!-- $$$reload[overload1]$$$reload -->
<h3 class="fn"><a name="reload"></a><span class="type">void</span> QWebView::<span class="name">reload</span>()<tt> [slot]</tt></h3>
<p>Reloads the current document.</p>
<p><b>See also </b><a href="qwebview.html#stop">stop</a>(), <a href="qwebview.html#pageAction">pageAction</a>(), and <a href="qwebview.html#loadStarted">loadStarted</a>().</p>
<!-- @@@reload -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QWebView::<span class="name">resizeEvent</span>(<span class="type">QResizeEvent</span> *<i> e</i>)<tt> [protected]</tt></h3>
<!-- @@@resizeEvent -->
<!-- $$$selectionChanged[overload1]$$$selectionChanged -->
<h3 class="fn"><a name="selectionChanged"></a><span class="type">void</span> QWebView::<span class="name">selectionChanged</span>()<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the selection changes.</p>
<p><b>See also </b><a href="qwebview.html#selectedText-prop">selectedText</a>().</p>
<!-- @@@selectionChanged -->
<!-- $$$setContent[overload1]$$$setContentconstQByteArray&constQString&constQUrl& -->
<h3 class="fn"><a name="setContent"></a><span class="type">void</span> QWebView::<span class="name">setContent</span>(const <span class="type">QByteArray</span> &amp;<i> data</i>, const <span class="type">QString</span> &amp;<i> mimeType</i> = QString(), const <span class="type">QUrl</span> &amp;<i> baseUrl</i> = QUrl())</h3>
<p>Sets the content of the web view 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="qwebview.html#load">load</a>(), <a href="qwebview.html#setHtml">setHtml</a>(), and <a href="qwebframe.html#toHtml">QWebFrame::toHtml</a>().</p>
<!-- @@@setContent -->
<!-- $$$setHtml[overload1]$$$setHtmlconstQString&constQUrl& -->
<h3 class="fn"><a name="setHtml"></a><span class="type">void</span> QWebView::<span class="name">setHtml</span>(const <span class="type">QString</span> &amp;<i> html</i>, const <span class="type">QUrl</span> &amp;<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, &quot;text/html&quot;, baseUrl).</p>
<p><b>Warning:</b> This function works only for HTML, for other mime types (i.e&#x2e; XHTML, SVG) <a href="qwebview.html#setContent">setContent</a>() should be used instead.</p>
<p><b>See also </b><a href="qwebview.html#load">load</a>(), <a href="qwebview.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> QWebView::<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 view.</p>
<p>The parent QObject of the provided page remains the owner of the object. If the current page is a child of the web view, it will be deleted.</p>
<p><b>See also </b><a href="qwebview.html#page">page</a>().</p>
<!-- @@@setPage -->
<!-- $$$setRenderHint[overload1]$$$setRenderHintQPainter::RenderHintbool -->
<h3 class="fn"><a name="setRenderHint"></a><span class="type">void</span> QWebView::<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.6.</p>
<p><b>See also </b><a href="qwebview.html#renderHints-prop">renderHints</a> and QPainter::renderHints().</p>
<!-- @@@setRenderHint -->
<!-- $$$setTextSizeMultiplier[overload1]$$$setTextSizeMultiplierqreal -->
<h3 class="fn"><a name="setTextSizeMultiplier"></a><span class="type">void</span> QWebView::<span class="name">setTextSizeMultiplier</span>(<span class="type">qreal</span><i> factor</i>)</h3>
<p>Sets the value of the multiplier used to scale the text in a Web page to the <i>factor</i> specified.</p>
<p><b>See also </b><a href="qwebview.html#textSizeMultiplier">textSizeMultiplier</a>().</p>
<!-- @@@setTextSizeMultiplier -->
<!-- $$$settings[overload1]$$$settings -->
<h3 class="fn"><a name="settings"></a><span class="type"><a href="qwebsettings.html">QWebSettings</a></span> * QWebView::<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">&gt;</span>page()<span class="operator">-</span><span class="operator">&gt;</span>settings();</pre>
<p><b>See also </b><a href="qwebsettings.html#globalSettings">QWebSettings::globalSettings</a>().</p>
<!-- @@@settings -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type">QSize</span> QWebView::<span class="name">sizeHint</span>() const</h3>
<!-- @@@sizeHint -->
<!-- $$$statusBarMessage[overload1]$$$statusBarMessageconstQString& -->
<h3 class="fn"><a name="statusBarMessage"></a><span class="type">void</span> QWebView::<span class="name">statusBarMessage</span>(const <span class="type">QString</span> &amp;<i> text</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted when the status bar <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> QWebView::<span class="name">stop</span>()<tt> [slot]</tt></h3>
<p>Convenience slot that stops loading the document.</p>
<p>It is equivalent to</p>
<pre class="cpp">    view<span class="operator">-</span><span class="operator">&gt;</span>page()<span class="operator">-</span><span class="operator">&gt;</span>triggerPageAction(<span class="type"><a href="qwebpage.html">QWebPage</a></span><span class="operator">::</span>Stop);</pre>
<p><b>See also </b><a href="qwebview.html#reload">reload</a>(), <a href="qwebview.html#pageAction">pageAction</a>(), and <a href="qwebview.html#loadFinished">loadFinished</a>().</p>
<!-- @@@stop -->
<!-- $$$textSizeMultiplier[overload1]$$$textSizeMultiplier -->
<h3 class="fn"><a name="textSizeMultiplier"></a><span class="type">qreal</span> QWebView::<span class="name">textSizeMultiplier</span>() const</h3>
<p>Returns the value of the multiplier used to scale the text in a Web page.</p>
<p><b>See also </b><a href="qwebview.html#setTextSizeMultiplier">setTextSizeMultiplier</a>().</p>
<!-- @@@textSizeMultiplier -->
<!-- $$$titleChanged[overload1]$$$titleChangedconstQString& -->
<h3 class="fn"><a name="titleChanged"></a><span class="type">void</span> QWebView::<span class="name">titleChanged</span>(const <span class="type">QString</span> &amp;<i> title</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the <i>title</i> of the main frame changes.</p>
<p><b>See also </b><a href="qwebview.html#title-prop">title</a>().</p>
<!-- @@@titleChanged -->
<!-- $$$triggerPageAction[overload1]$$$triggerPageActionQWebPage::WebActionbool -->
<h3 class="fn"><a name="triggerPageAction"></a><span class="type">void</span> QWebView::<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>The following example triggers the copy action and therefore copies any selected text to the clipboard.</p>
<pre class="cpp">    view<span class="operator">-</span><span class="operator">&gt;</span>triggerAction(<span class="type"><a href="qwebpage.html">QWebPage</a></span><span class="operator">::</span>Copy);</pre>
<p><b>See also </b><a href="qwebview.html#pageAction">pageAction</a>().</p>
<!-- @@@triggerPageAction -->
<!-- $$$urlChanged[overload1]$$$urlChangedconstQUrl& -->
<h3 class="fn"><a name="urlChanged"></a><span class="type">void</span> QWebView::<span class="name">urlChanged</span>(const <span class="type">QUrl</span> &amp;<i> url</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted when the <i>url</i> of the view changes.</p>
<p><b>See also </b><a href="qwebview.html#url-prop">url</a>() and <a href="qwebview.html#load">load</a>().</p>
<!-- @@@urlChanged -->
<!-- $$$wheelEvent[overload1]$$$wheelEventQWheelEvent* -->
<h3 class="fn"><a name="wheelEvent"></a><span class="type">void</span> QWebView::<span class="name">wheelEvent</span>(<span class="type">QWheelEvent</span> *<i> ev</i>)<tt> [virtual protected]</tt></h3>
<!-- @@@wheelEvent -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>