File: qwebpage.html

package info (click to toggle)
python-qt4 4.7.3-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 28,504 kB
  • ctags: 4,680
  • sloc: python: 28,738; cpp: 8,897; sh: 245; xml: 243; makefile: 150
file content (462 lines) | stat: -rw-r--r-- 74,194 bytes parent folder | download
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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QWebPage Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QWebPage Class Reference<br /><sup><sup>[<a href="qtwebkit.html">QtWebKit</a> module]</sup></sup></h1><p>The QWebPage class provides an object to view and edit web documents. <a href="#details">More...</a></p>
<p>Inherits <a href="qobject.html">QObject</a>.</p><h3>Types</h3><ul><li><div class="fn" />class <b><a href="qwebpage-choosemultiplefilesextensionoption.html">ChooseMultipleFilesExtensionOption</a></b></li><li><div class="fn" />class <b><a href="qwebpage-choosemultiplefilesextensionreturn.html">ChooseMultipleFilesExtensionReturn</a></b></li><li><div class="fn" />enum <b><a href="qwebpage.html#Extension-enum">Extension</a></b> { ChooseMultipleFilesExtension }</li><li><div class="fn" />class <b><a href="qwebpage-extensionoption.html">ExtensionOption</a></b></li><li><div class="fn" />class <b><a href="qwebpage-extensionreturn.html">ExtensionReturn</a></b></li><li><div class="fn" />enum <b><a href="qwebpage.html#FindFlag-enum">FindFlag</a></b> { FindBackward, FindCaseSensitively, FindWrapsAroundDocument, HighlightAllOccurrences }</li><li><div class="fn" />class <b><a href="qwebpage-findflags.html">FindFlags</a></b></li><li><div class="fn" />enum <b><a href="qwebpage.html#LinkDelegationPolicy-enum">LinkDelegationPolicy</a></b> { DontDelegateLinks, DelegateExternalLinks, DelegateAllLinks }</li><li><div class="fn" />enum <b><a href="qwebpage.html#NavigationType-enum">NavigationType</a></b> { NavigationTypeLinkClicked, NavigationTypeFormSubmitted, NavigationTypeBackOrForward, NavigationTypeReload, NavigationTypeFormResubmitted, NavigationTypeOther }</li><li><div class="fn" />enum <b><a href="qwebpage.html#WebAction-enum">WebAction</a></b> { NoWebAction, OpenLink, OpenLinkInNewWindow, OpenFrameInNewWindow, ..., AlignRight }</li><li><div class="fn" />enum <b><a href="qwebpage.html#WebWindowType-enum">WebWindowType</a></b> { WebBrowserWindow, WebModalDialog }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qwebpage.html#QWebPage">__init__</a></b> (<i>self</i>, QObject&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />bool <b><a href="qwebpage.html#acceptNavigationRequest">acceptNavigationRequest</a></b> (<i>self</i>, QWebFrame, QNetworkRequest, NavigationType)</li><li><div class="fn" />QAction <b><a href="qwebpage.html#action">action</a></b> (<i>self</i>, WebAction)</li><li><div class="fn" />int <b><a href="qwebpage.html#bytesReceived">bytesReceived</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qwebpage.html#chooseFile">chooseFile</a></b> (<i>self</i>, QWebFrame, QString)</li><li><div class="fn" />QObject <b><a href="qwebpage.html#createPlugin">createPlugin</a></b> (<i>self</i>, QString, QUrl, QStringList, QStringList)</li><li><div class="fn" />QMenu <b><a href="qwebpage.html#createStandardContextMenu">createStandardContextMenu</a></b> (<i>self</i>)</li><li><div class="fn" />QWebPage <b><a href="qwebpage.html#createWindow">createWindow</a></b> (<i>self</i>, WebWindowType)</li><li><div class="fn" />QWebFrame <b><a href="qwebpage.html#currentFrame">currentFrame</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qwebpage.html#event">event</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" />bool <b><a href="qwebpage.html#extension">extension</a></b> (<i>self</i>, Extension, ExtensionOption&#160;<i>option</i>&#160;=&#160;None, ExtensionReturn&#160;<i>output</i>&#160;=&#160;None)</li><li><div class="fn" />bool <b><a href="qwebpage.html#findText">findText</a></b> (<i>self</i>, QString, FindFlags&#160;<i>options</i>&#160;=&#160;0)</li><li><div class="fn" />bool <b><a href="qwebpage.html#focusNextPrevChild">focusNextPrevChild</a></b> (<i>self</i>, bool)</li><li><div class="fn" />bool <b><a href="qwebpage.html#forwardUnsupportedContent">forwardUnsupportedContent</a></b> (<i>self</i>)</li><li><div class="fn" />QWebFrame <b><a href="qwebpage.html#frameAt">frameAt</a></b> (<i>self</i>, QPoint)</li><li><div class="fn" />QWebHistory <b><a href="qwebpage.html#history">history</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qwebpage.html#inputMethodQuery">inputMethodQuery</a></b> (<i>self</i>, Qt.InputMethodQuery)</li><li><div class="fn" />bool <b><a href="qwebpage.html#isContentEditable">isContentEditable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qwebpage.html#isModified">isModified</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebpage.html#javaScriptAlert">javaScriptAlert</a></b> (<i>self</i>, QWebFrame, QString)</li><li><div class="fn" />bool <b><a href="qwebpage.html#javaScriptConfirm">javaScriptConfirm</a></b> (<i>self</i>, QWebFrame, QString)</li><li><div class="fn" /><b><a href="qwebpage.html#javaScriptConsoleMessage">javaScriptConsoleMessage</a></b> (<i>self</i>, QString, int, QString)</li><li><div class="fn" />(bool, QString&#160;<i>result</i>) <b><a href="qwebpage.html#javaScriptPrompt">javaScriptPrompt</a></b> (<i>self</i>, QWebFrame&#160;<i>originatingFrame</i>, QString&#160;<i>msg</i>, QString&#160;<i>defaultValue</i>)</li><li><div class="fn" />bool <b><a href="qwebpage.html#javaScriptPrompt-2">javaScriptPrompt</a></b> (<i>self</i>, QWebFrame, QString, QString, QString)</li><li><div class="fn" />LinkDelegationPolicy <b><a href="qwebpage.html#linkDelegationPolicy">linkDelegationPolicy</a></b> (<i>self</i>)</li><li><div class="fn" />QWebFrame <b><a href="qwebpage.html#mainFrame">mainFrame</a></b> (<i>self</i>)</li><li><div class="fn" />QNetworkAccessManager <b><a href="qwebpage.html#networkAccessManager">networkAccessManager</a></b> (<i>self</i>)</li><li><div class="fn" />QPalette <b><a href="qwebpage.html#palette">palette</a></b> (<i>self</i>)</li><li><div class="fn" />QWebPluginFactory <b><a href="qwebpage.html#pluginFactory">pluginFactory</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qwebpage.html#preferredContentsSize">preferredContentsSize</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qwebpage.html#selectedText">selectedText</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebpage.html#setContentEditable">setContentEditable</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qwebpage.html#setForwardUnsupportedContent">setForwardUnsupportedContent</a></b> (<i>self</i>, bool)</li><li><div class="fn" /><b><a href="qwebpage.html#setLinkDelegationPolicy">setLinkDelegationPolicy</a></b> (<i>self</i>, LinkDelegationPolicy)</li><li><div class="fn" /><b><a href="qwebpage.html#setNetworkAccessManager">setNetworkAccessManager</a></b> (<i>self</i>, QNetworkAccessManager)</li><li><div class="fn" /><b><a href="qwebpage.html#setPalette">setPalette</a></b> (<i>self</i>, QPalette)</li><li><div class="fn" /><b><a href="qwebpage.html#setPluginFactory">setPluginFactory</a></b> (<i>self</i>, QWebPluginFactory)</li><li><div class="fn" /><b><a href="qwebpage.html#setPreferredContentsSize">setPreferredContentsSize</a></b> (<i>self</i>, QSize)</li><li><div class="fn" />QWebSettings <b><a href="qwebpage.html#settings">settings</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebpage.html#setView">setView</a></b> (<i>self</i>, QWidget)</li><li><div class="fn" /><b><a href="qwebpage.html#setViewportSize">setViewportSize</a></b> (<i>self</i>, QSize)</li><li><div class="fn" />bool <b><a href="qwebpage.html#shouldInterruptJavaScript">shouldInterruptJavaScript</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qwebpage.html#supportsExtension">supportsExtension</a></b> (<i>self</i>, Extension)</li><li><div class="fn" />bool <b><a href="qwebpage.html#swallowContextMenuEvent">swallowContextMenuEvent</a></b> (<i>self</i>, QContextMenuEvent)</li><li><div class="fn" />int <b><a href="qwebpage.html#totalBytes">totalBytes</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebpage.html#triggerAction">triggerAction</a></b> (<i>self</i>, WebAction, bool&#160;<i>checked</i>&#160;=&#160;False)</li><li><div class="fn" />QUndoStack <b><a href="qwebpage.html#undoStack">undoStack</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebpage.html#updatePositionDependentActions">updatePositionDependentActions</a></b> (<i>self</i>, QPoint)</li><li><div class="fn" />QString <b><a href="qwebpage.html#userAgentForUrl">userAgentForUrl</a></b> (<i>self</i>, QUrl)</li><li><div class="fn" />QWidget <b><a href="qwebpage.html#view">view</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qwebpage.html#viewportSize">viewportSize</a></b> (<i>self</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qwebpage.html#contentsChanged">contentsChanged</a></b> ()</li><li><div class="fn" />void <b><a href="qwebpage.html#databaseQuotaExceeded">databaseQuotaExceeded</a></b> (QWebFrame *,QString)</li><li><div class="fn" />void <b><a href="qwebpage.html#downloadRequested">downloadRequested</a></b> (const QNetworkRequest&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#frameCreated">frameCreated</a></b> (QWebFrame *)</li><li><div class="fn" />void <b><a href="qwebpage.html#geometryChangeRequested">geometryChangeRequested</a></b> (const QRect&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#linkClicked">linkClicked</a></b> (const QUrl&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#linkHovered">linkHovered</a></b> (const QString&amp;,const QString&amp;,const QString&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#loadFinished">loadFinished</a></b> (bool)</li><li><div class="fn" />void <b><a href="qwebpage.html#loadProgress">loadProgress</a></b> (int)</li><li><div class="fn" />void <b><a href="qwebpage.html#loadStarted">loadStarted</a></b> ()</li><li><div class="fn" />void <b><a href="qwebpage.html#menuBarVisibilityChangeRequested">menuBarVisibilityChangeRequested</a></b> (bool)</li><li><div class="fn" />void <b><a href="qwebpage.html#microFocusChanged">microFocusChanged</a></b> ()</li><li><div class="fn" />void <b><a href="qwebpage.html#printRequested">printRequested</a></b> (QWebFrame *)</li><li><div class="fn" />void <b><a href="qwebpage.html#repaintRequested">repaintRequested</a></b> (const QRect&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#restoreFrameStateRequested">restoreFrameStateRequested</a></b> (QWebFrame *)</li><li><div class="fn" />void <b><a href="qwebpage.html#saveFrameStateRequested">saveFrameStateRequested</a></b> (QWebFrame *,QWebHistoryItem *)</li><li><div class="fn" />void <b><a href="qwebpage.html#scrollRequested">scrollRequested</a></b> (int,int,const QRect&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#selectionChanged">selectionChanged</a></b> ()</li><li><div class="fn" />void <b><a href="qwebpage.html#statusBarMessage">statusBarMessage</a></b> (const QString&amp;)</li><li><div class="fn" />void <b><a href="qwebpage.html#statusBarVisibilityChangeRequested">statusBarVisibilityChangeRequested</a></b> (bool)</li><li><div class="fn" />void <b><a href="qwebpage.html#toolBarVisibilityChangeRequested">toolBarVisibilityChangeRequested</a></b> (bool)</li><li><div class="fn" />void <b><a href="qwebpage.html#unsupportedContent">unsupportedContent</a></b> (QNetworkReply *)</li><li><div class="fn" />void <b><a href="qwebpage.html#windowCloseRequested">windowCloseRequested</a></b> ()</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QWebPage class provides an object to view and edit web documents.</p>
<p>QWebPage holds a main frame responsible for web content, settings, the history of navigated links and actions. This class can be used, together with <a href="qwebframe.html">QWebFrame</a>, to provide functionality like <a href="qwebview.html">QWebView</a> in a widget-less environment.</p>
<p>QWebPage's API is very similar to <a href="qwebview.html">QWebView</a>, as you are still provided with common functions like <a href="qwebpage.html#action">action</a>() (known as <a href="qwebview.html#pageAction">pageAction()</a> in <a href="qwebview.html">QWebView</a>), <a href="qwebpage.html#triggerAction">triggerAction</a>(), <a href="qwebpage.html#findText">findText</a>() and <a href="qwebpage.html#settings">settings</a>(). More <a href="qwebview.html">QWebView</a>-like functions can be found in the main frame of QWebPage, obtained via <a href="qwebpage.html#mainFrame">QWebPage.mainFrame</a>(). For example, the load(), setUrl() and setHtml() unctions for QWebPage can be accessed using <a href="qwebframe.html">QWebFrame</a>.</p>
<p>The <a href="qwebpage.html#loadStarted">loadStarted</a>() signal is emitted when the page begins to load.The <a href="qwebpage.html#loadProgress">loadProgress</a>() signal, on the other hand, is emitted whenever an element of the web page completes loading, such as an embedded image, a script, etc. Finally, the <a href="qwebpage.html#loadFinished">loadFinished</a>() signal is emitted when the page has loaded completely. Its argument, either true or false, indicates whether or not the load operation succeeded.</p>
<a name="using-qwebpage-in-a-widget-less-environment" />
<h3>Using QWebPage in a Widget-less Environment</h3>
<p>Before you begin painting a QWebPage object, you need to set the size of the viewport by calling <a href="qwebpage.html#viewportSize-prop">setViewportSize</a>(). Then, you invoke the main frame's render function (<a href="qwebframe.html#render">QWebFrame.render</a>()). An example of this is shown in the code snippet below.</p>
<p>Suppose we have a <tt>Thumbnail</tt> class as follows:</p>
<pre> class Thumbnailer : public QObject
 {
     Q_OBJECT

 public:
     Thumbnailer(const QUrl &amp;url);

 signals:
     void finished();

 private slots:
     void render();

 private:
     QWebPage page;

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

     page.mainFrame()-&gt;render(&amp;painter);
     painter.end();

     QImage thumbnail = image.scaled(400, 400);
     thumbnail.save("thumbnail.png");

     emit finished();
 }</pre>
<p>We begin by setting the <a href="qwebpage.html#viewportSize-prop">viewportSize</a> and then we instantiate a <a href="qimage.html">QImage</a> object, <tt>image</tt>, with the same size as our <a href="qwebpage.html#viewportSize-prop">viewportSize</a>. This image is then sent as a parameter to <tt>painter</tt>. Next, we render the contents of the main frame and its subframes into <tt>painter</tt>. Finally, we save the scaled image.</p>
<p>See also <a href="qwebframe.html">QWebFrame</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Extension-enum" />QWebPage.Extension</h3><p>This enum describes the types of extensions that the page can support. Before using these extensions, you should verify that the extension is supported by calling <a href="qwebpage.html#supportsExtension">supportsExtension</a>().</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWebPage.ChooseMultipleFilesExtension</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Whether the web page supports multiple file selection. This extension is invoked when the web content requests one or more file names, for example as a result of the user clicking on a "file upload" button in a HTML form where multiple file selection is allowed.</td></tr>
</table></p>
<p>(introduced in Qt 4.6)</p>
<a name="//apple_ref/cpp/tag/QWebPage/FindFlag" />
<a name="//apple_ref/cpp/econst/QWebPage/FindBackward" />
<a name="//apple_ref/cpp/econst/QWebPage/FindCaseSensitively" />
<a name="//apple_ref/cpp/econst/QWebPage/FindWrapsAroundDocument" />
<a name="//apple_ref/cpp/econst/QWebPage/HighlightAllOccurrences" />
<a name="//apple_ref/cpp/tdef/QWebPage/FindFlags" />
<h3 class="fn"><a name="FindFlag-enum" />QWebPage.FindFlag</h3><p>This enum describes the options available to <a href="qwebpage.html">QWebPage</a>'s <a href="qwebpage.html#findText">findText</a>() function. The options can be OR-ed together from the following list:</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWebPage.FindBackward</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Searches backwards instead of forwards.</td></tr>
<tr><td valign="top"><tt>QWebPage.FindCaseSensitively</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">By default <a href="qwebpage.html#findText">findText</a>() works case insensitive. Specifying this option changes the behaviour to a case sensitive find operation.</td></tr>
<tr><td valign="top"><tt>QWebPage.FindWrapsAroundDocument</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Makes <a href="qwebpage.html#findText">findText</a>() restart from the beginning of the document if the end was reached and the text was not found.</td></tr>
<tr><td valign="top"><tt>QWebPage.HighlightAllOccurrences</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Highlights all existing occurrences of a specific string.</td></tr>
</table></p>
<p>The FindFlags type is a typedef for <a href="qflags.html">QFlags</a>&lt;FindFlag&gt;. It stores an OR combination of FindFlag values.</p>
<a name="//apple_ref/cpp/tag/QWebPage/LinkDelegationPolicy" />
<a name="//apple_ref/cpp/econst/QWebPage/DontDelegateLinks" />
<a name="//apple_ref/cpp/econst/QWebPage/DelegateExternalLinks" />
<a name="//apple_ref/cpp/econst/QWebPage/DelegateAllLinks" />
<h3 class="fn"><a name="LinkDelegationPolicy-enum" />QWebPage.LinkDelegationPolicy</h3><p>This enum defines the delegation policies a webpage can have when activating links and emitting the <a href="qwebpage.html#linkClicked">linkClicked</a>() signal.</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWebPage.DontDelegateLinks</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">No links are delegated. Instead, <a href="qwebpage.html">QWebPage</a> tries to handle them all.</td></tr>
<tr><td valign="top"><tt>QWebPage.DelegateExternalLinks</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">When activating links that point to documents not stored on the local filesystem or an equivalent - such as the Qt resource system - then <a href="qwebpage.html#linkClicked">linkClicked</a>() is emitted.</td></tr>
<tr><td valign="top"><tt>QWebPage.DelegateAllLinks</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Whenever a link is activated the <a href="qwebpage.html#linkClicked">linkClicked</a>() signal is emitted.</td></tr>
</table></p>
<a name="//apple_ref/cpp/tag/QWebPage/NavigationType" />
<a name="//apple_ref/cpp/econst/QWebPage/NavigationTypeLinkClicked" />
<a name="//apple_ref/cpp/econst/QWebPage/NavigationTypeFormSubmitted" />
<a name="//apple_ref/cpp/econst/QWebPage/NavigationTypeBackOrForward" />
<a name="//apple_ref/cpp/econst/QWebPage/NavigationTypeReload" />
<a name="//apple_ref/cpp/econst/QWebPage/NavigationTypeFormResubmitted" />
<a name="//apple_ref/cpp/econst/QWebPage/NavigationTypeOther" />
<h3 class="fn"><a name="NavigationType-enum" />QWebPage.NavigationType</h3><p>This enum describes the types of navigation available when browsing through hyperlinked documents.</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWebPage.NavigationTypeLinkClicked</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The user clicked on a link or pressed return on a focused link.</td></tr>
<tr><td valign="top"><tt>QWebPage.NavigationTypeFormSubmitted</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The user activated a submit button for an HTML form.</td></tr>
<tr><td valign="top"><tt>QWebPage.NavigationTypeBackOrForward</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Navigation to a previously shown document in the back or forward history is requested.</td></tr>
<tr><td valign="top"><tt>QWebPage.NavigationTypeReload</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The user activated the reload action.</td></tr>
<tr><td valign="top"><tt>QWebPage.NavigationTypeFormResubmitted</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">An HTML form was submitted a second time.</td></tr>
<tr><td valign="top"><tt>QWebPage.NavigationTypeOther</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">A navigation to another document using a method not listed above.</td></tr>
</table></p>
<a name="//apple_ref/cpp/tag/QWebPage/WebAction" />
<a name="//apple_ref/cpp/econst/QWebPage/NoWebAction" />
<a name="//apple_ref/cpp/econst/QWebPage/OpenLink" />
<a name="//apple_ref/cpp/econst/QWebPage/OpenLinkInNewWindow" />
<a name="//apple_ref/cpp/econst/QWebPage/OpenFrameInNewWindow" />
<a name="//apple_ref/cpp/econst/QWebPage/DownloadLinkToDisk" />
<a name="//apple_ref/cpp/econst/QWebPage/CopyLinkToClipboard" />
<a name="//apple_ref/cpp/econst/QWebPage/OpenImageInNewWindow" />
<a name="//apple_ref/cpp/econst/QWebPage/DownloadImageToDisk" />
<a name="//apple_ref/cpp/econst/QWebPage/CopyImageToClipboard" />
<a name="//apple_ref/cpp/econst/QWebPage/Back" />
<a name="//apple_ref/cpp/econst/QWebPage/Forward" />
<a name="//apple_ref/cpp/econst/QWebPage/Stop" />
<a name="//apple_ref/cpp/econst/QWebPage/Reload" />
<a name="//apple_ref/cpp/econst/QWebPage/ReloadAndBypassCache" />
<a name="//apple_ref/cpp/econst/QWebPage/Cut" />
<a name="//apple_ref/cpp/econst/QWebPage/Copy" />
<a name="//apple_ref/cpp/econst/QWebPage/Paste" />
<a name="//apple_ref/cpp/econst/QWebPage/Undo" />
<a name="//apple_ref/cpp/econst/QWebPage/Redo" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToNextChar" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToPreviousChar" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToNextWord" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToPreviousWord" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToNextLine" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToPreviousLine" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToStartOfLine" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToEndOfLine" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToStartOfBlock" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToEndOfBlock" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToStartOfDocument" />
<a name="//apple_ref/cpp/econst/QWebPage/MoveToEndOfDocument" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectNextChar" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectPreviousChar" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectNextWord" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectPreviousWord" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectNextLine" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectPreviousLine" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectStartOfLine" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectEndOfLine" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectStartOfBlock" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectEndOfBlock" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectStartOfDocument" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectEndOfDocument" />
<a name="//apple_ref/cpp/econst/QWebPage/DeleteStartOfWord" />
<a name="//apple_ref/cpp/econst/QWebPage/DeleteEndOfWord" />
<a name="//apple_ref/cpp/econst/QWebPage/SetTextDirectionDefault" />
<a name="//apple_ref/cpp/econst/QWebPage/SetTextDirectionLeftToRight" />
<a name="//apple_ref/cpp/econst/QWebPage/SetTextDirectionRightToLeft" />
<a name="//apple_ref/cpp/econst/QWebPage/ToggleBold" />
<a name="//apple_ref/cpp/econst/QWebPage/ToggleItalic" />
<a name="//apple_ref/cpp/econst/QWebPage/ToggleUnderline" />
<a name="//apple_ref/cpp/econst/QWebPage/InspectElement" />
<a name="//apple_ref/cpp/econst/QWebPage/InsertParagraphSeparator" />
<a name="//apple_ref/cpp/econst/QWebPage/InsertLineSeparator" />
<a name="//apple_ref/cpp/econst/QWebPage/SelectAll" />
<a name="//apple_ref/cpp/econst/QWebPage/PasteAndMatchStyle" />
<a name="//apple_ref/cpp/econst/QWebPage/RemoveFormat" />
<a name="//apple_ref/cpp/econst/QWebPage/ToggleStrikethrough" />
<a name="//apple_ref/cpp/econst/QWebPage/ToggleSubscript" />
<a name="//apple_ref/cpp/econst/QWebPage/ToggleSuperscript" />
<a name="//apple_ref/cpp/econst/QWebPage/InsertUnorderedList" />
<a name="//apple_ref/cpp/econst/QWebPage/InsertOrderedList" />
<a name="//apple_ref/cpp/econst/QWebPage/Indent" />
<a name="//apple_ref/cpp/econst/QWebPage/Outdent" />
<a name="//apple_ref/cpp/econst/QWebPage/AlignCenter" />
<a name="//apple_ref/cpp/econst/QWebPage/AlignJustified" />
<a name="//apple_ref/cpp/econst/QWebPage/AlignLeft" />
<a name="//apple_ref/cpp/econst/QWebPage/AlignRight" />
<a name="//apple_ref/cpp/econst/QWebPage/WebActionCount" />
<h3 class="fn"><a name="WebAction-enum" />QWebPage.WebAction</h3><p>This enum describes the types of action which can be performed on the web page.</p>
<p>Actions only have an effect when they are applicable. The availability of actions can be be determined by checking <a href="qaction.html#enabled-prop">isEnabled()</a> on the action returned by <a href="qwebpage.html#action">action()</a>.</p>
<p>One method of enabling the text editing, cursor movement, and text selection actions is by setting <a href="qwebpage.html#contentEditable-prop">contentEditable</a> to true.</p>
<p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWebPage.NoWebAction</tt></td><td align="center" valign="top"><tt>-1</tt></td><td valign="top">No action is triggered.</td></tr>
<tr><td valign="top"><tt>QWebPage.OpenLink</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Open the current link.</td></tr>
<tr><td valign="top"><tt>QWebPage.OpenLinkInNewWindow</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">Open the current link in a new window.</td></tr>
<tr><td valign="top"><tt>QWebPage.OpenFrameInNewWindow</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Replicate the current frame in a new window.</td></tr>
<tr><td valign="top"><tt>QWebPage.DownloadLinkToDisk</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Download the current link to the disk.</td></tr>
<tr><td valign="top"><tt>QWebPage.CopyLinkToClipboard</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">Copy the current link to the clipboard.</td></tr>
<tr><td valign="top"><tt>QWebPage.OpenImageInNewWindow</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">Open the highlighted image in a new window.</td></tr>
<tr><td valign="top"><tt>QWebPage.DownloadImageToDisk</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">Download the highlighted image to the disk.</td></tr>
<tr><td valign="top"><tt>QWebPage.CopyImageToClipboard</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">Copy the highlighted image to the clipboard.</td></tr>
<tr><td valign="top"><tt>QWebPage.Back</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">Navigate back in the history of navigated links.</td></tr>
<tr><td valign="top"><tt>QWebPage.Forward</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">Navigate forward in the history of navigated links.</td></tr>
<tr><td valign="top"><tt>QWebPage.Stop</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">Stop loading the current page.</td></tr>
<tr><td valign="top"><tt>QWebPage.Reload</tt></td><td align="center" valign="top"><tt>11</tt></td><td valign="top">Reload the current page.</td></tr>
<tr><td valign="top"><tt>QWebPage.ReloadAndBypassCache</tt></td><td align="center" valign="top"><tt>53</tt></td><td valign="top">Reload the current page, but do not use any local cache. (Added in Qt 4.6)</td></tr>
<tr><td valign="top"><tt>QWebPage.Cut</tt></td><td align="center" valign="top"><tt>12</tt></td><td valign="top">Cut the content currently selected into the clipboard.</td></tr>
<tr><td valign="top"><tt>QWebPage.Copy</tt></td><td align="center" valign="top"><tt>13</tt></td><td valign="top">Copy the content currently selected into the clipboard.</td></tr>
<tr><td valign="top"><tt>QWebPage.Paste</tt></td><td align="center" valign="top"><tt>14</tt></td><td valign="top">Paste content from the clipboard.</td></tr>
<tr><td valign="top"><tt>QWebPage.Undo</tt></td><td align="center" valign="top"><tt>15</tt></td><td valign="top">Undo the last editing action.</td></tr>
<tr><td valign="top"><tt>QWebPage.Redo</tt></td><td align="center" valign="top"><tt>16</tt></td><td valign="top">Redo the last editing action.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToNextChar</tt></td><td align="center" valign="top"><tt>17</tt></td><td valign="top">Move the cursor to the next character.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToPreviousChar</tt></td><td align="center" valign="top"><tt>18</tt></td><td valign="top">Move the cursor to the previous character.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToNextWord</tt></td><td align="center" valign="top"><tt>19</tt></td><td valign="top">Move the cursor to the next word.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToPreviousWord</tt></td><td align="center" valign="top"><tt>20</tt></td><td valign="top">Move the cursor to the previous word.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToNextLine</tt></td><td align="center" valign="top"><tt>21</tt></td><td valign="top">Move the cursor to the next line.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToPreviousLine</tt></td><td align="center" valign="top"><tt>22</tt></td><td valign="top">Move the cursor to the previous line.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToStartOfLine</tt></td><td align="center" valign="top"><tt>23</tt></td><td valign="top">Move the cursor to the start of the line.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToEndOfLine</tt></td><td align="center" valign="top"><tt>24</tt></td><td valign="top">Move the cursor to the end of the line.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToStartOfBlock</tt></td><td align="center" valign="top"><tt>25</tt></td><td valign="top">Move the cursor to the start of the block.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToEndOfBlock</tt></td><td align="center" valign="top"><tt>26</tt></td><td valign="top">Move the cursor to the end of the block.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToStartOfDocument</tt></td><td align="center" valign="top"><tt>27</tt></td><td valign="top">Move the cursor to the start of the document.</td></tr>
<tr><td valign="top"><tt>QWebPage.MoveToEndOfDocument</tt></td><td align="center" valign="top"><tt>28</tt></td><td valign="top">Move the cursor to the end of the document.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectNextChar</tt></td><td align="center" valign="top"><tt>29</tt></td><td valign="top">Select to the next character.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectPreviousChar</tt></td><td align="center" valign="top"><tt>30</tt></td><td valign="top">Select to the previous character.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectNextWord</tt></td><td align="center" valign="top"><tt>31</tt></td><td valign="top">Select to the next word.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectPreviousWord</tt></td><td align="center" valign="top"><tt>32</tt></td><td valign="top">Select to the previous word.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectNextLine</tt></td><td align="center" valign="top"><tt>33</tt></td><td valign="top">Select to the next line.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectPreviousLine</tt></td><td align="center" valign="top"><tt>34</tt></td><td valign="top">Select to the previous line.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectStartOfLine</tt></td><td align="center" valign="top"><tt>35</tt></td><td valign="top">Select to the start of the line.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectEndOfLine</tt></td><td align="center" valign="top"><tt>36</tt></td><td valign="top">Select to the end of the line.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectStartOfBlock</tt></td><td align="center" valign="top"><tt>37</tt></td><td valign="top">Select to the start of the block.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectEndOfBlock</tt></td><td align="center" valign="top"><tt>38</tt></td><td valign="top">Select to the end of the block.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectStartOfDocument</tt></td><td align="center" valign="top"><tt>39</tt></td><td valign="top">Select to the start of the document.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectEndOfDocument</tt></td><td align="center" valign="top"><tt>40</tt></td><td valign="top">Select to the end of the document.</td></tr>
<tr><td valign="top"><tt>QWebPage.DeleteStartOfWord</tt></td><td align="center" valign="top"><tt>41</tt></td><td valign="top">Delete to the start of the word.</td></tr>
<tr><td valign="top"><tt>QWebPage.DeleteEndOfWord</tt></td><td align="center" valign="top"><tt>42</tt></td><td valign="top">Delete to the end of the word.</td></tr>
<tr><td valign="top"><tt>QWebPage.SetTextDirectionDefault</tt></td><td align="center" valign="top"><tt>43</tt></td><td valign="top">Set the text direction to the default direction.</td></tr>
<tr><td valign="top"><tt>QWebPage.SetTextDirectionLeftToRight</tt></td><td align="center" valign="top"><tt>44</tt></td><td valign="top">Set the text direction to left-to-right.</td></tr>
<tr><td valign="top"><tt>QWebPage.SetTextDirectionRightToLeft</tt></td><td align="center" valign="top"><tt>45</tt></td><td valign="top">Set the text direction to right-to-left.</td></tr>
<tr><td valign="top"><tt>QWebPage.ToggleBold</tt></td><td align="center" valign="top"><tt>46</tt></td><td valign="top">Toggle the formatting between bold and normal weight.</td></tr>
<tr><td valign="top"><tt>QWebPage.ToggleItalic</tt></td><td align="center" valign="top"><tt>47</tt></td><td valign="top">Toggle the formatting between italic and normal style.</td></tr>
<tr><td valign="top"><tt>QWebPage.ToggleUnderline</tt></td><td align="center" valign="top"><tt>48</tt></td><td valign="top">Toggle underlining.</td></tr>
<tr><td valign="top"><tt>QWebPage.InspectElement</tt></td><td align="center" valign="top"><tt>49</tt></td><td valign="top">Show the Web Inspector with the currently highlighted HTML element.</td></tr>
<tr><td valign="top"><tt>QWebPage.InsertParagraphSeparator</tt></td><td align="center" valign="top"><tt>50</tt></td><td valign="top">Insert a new paragraph.</td></tr>
<tr><td valign="top"><tt>QWebPage.InsertLineSeparator</tt></td><td align="center" valign="top"><tt>51</tt></td><td valign="top">Insert a new line.</td></tr>
<tr><td valign="top"><tt>QWebPage.SelectAll</tt></td><td align="center" valign="top"><tt>52</tt></td><td valign="top">Selects all content.</td></tr>
<tr><td valign="top"><tt>QWebPage.PasteAndMatchStyle</tt></td><td align="center" valign="top"><tt>54</tt></td><td valign="top">Paste content from the clipboard with current style.</td></tr>
<tr><td valign="top"><tt>QWebPage.RemoveFormat</tt></td><td align="center" valign="top"><tt>55</tt></td><td valign="top">Removes formatting and style.</td></tr>
<tr><td valign="top"><tt>QWebPage.ToggleStrikethrough</tt></td><td align="center" valign="top"><tt>56</tt></td><td valign="top">Toggle the formatting between strikethrough and normal style.</td></tr>
<tr><td valign="top"><tt>QWebPage.ToggleSubscript</tt></td><td align="center" valign="top"><tt>57</tt></td><td valign="top">Toggle the formatting between subscript and baseline.</td></tr>
<tr><td valign="top"><tt>QWebPage.ToggleSuperscript</tt></td><td align="center" valign="top"><tt>58</tt></td><td valign="top">Toggle the formatting between supercript and baseline.</td></tr>
<tr><td valign="top"><tt>QWebPage.InsertUnorderedList</tt></td><td align="center" valign="top"><tt>59</tt></td><td valign="top">Toggles the selection between an ordered list and a normal block.</td></tr>
<tr><td valign="top"><tt>QWebPage.InsertOrderedList</tt></td><td align="center" valign="top"><tt>60</tt></td><td valign="top">Toggles the selection between an ordered list and a normal block.</td></tr>
<tr><td valign="top"><tt>QWebPage.Indent</tt></td><td align="center" valign="top"><tt>61</tt></td><td valign="top">Increases the indentation of the currently selected format block by one increment.</td></tr>
<tr><td valign="top"><tt>QWebPage.Outdent</tt></td><td align="center" valign="top"><tt>62</tt></td><td valign="top">Decreases the indentation of the currently selected format block by one increment.</td></tr>
<tr><td valign="top"><tt>QWebPage.AlignCenter</tt></td><td align="center" valign="top"><tt>63</tt></td><td valign="top">Applies center alignment to content.</td></tr>
<tr><td valign="top"><tt>QWebPage.AlignJustified</tt></td><td align="center" valign="top"><tt>64</tt></td><td valign="top">Applies full justification to content.</td></tr>
<tr><td valign="top"><tt>QWebPage.AlignLeft</tt></td><td align="center" valign="top"><tt>65</tt></td><td valign="top">Applies left justification to content.</td></tr>
<tr><td valign="top"><tt>QWebPage.AlignRight</tt></td><td align="center" valign="top"><tt>66</tt></td><td valign="top">Applies right justification to content.</td></tr>
</table></p>
<a name="//apple_ref/cpp/tag/QWebPage/WebWindowType" />
<a name="//apple_ref/cpp/econst/QWebPage/WebBrowserWindow" />
<a name="//apple_ref/cpp/econst/QWebPage/WebModalDialog" />
<h3 class="fn"><a name="WebWindowType-enum" />QWebPage.WebWindowType</h3><p><table border="1" cellpadding="2" cellspacing="1" class="valuelist" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QWebPage.WebBrowserWindow</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The window is a regular web browser window.</td></tr>
<tr><td valign="top"><tt>QWebPage.WebModalDialog</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The window acts as modal dialog.</td></tr>
</table></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QWebPage" />QWebPage.__init__ (<i>self</i>, <a href="qobject.html">QObject</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs an empty <a href="qwebpage.html">QWebPage</a> with parent <i>parent</i>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/~QWebPage" />
<h3 class="fn"><a name="acceptNavigationRequest" />bool QWebPage.acceptNavigationRequest (<i>self</i>, <a href="qwebframe.html">QWebFrame</a>, <a href="qnetworkrequest.html">QNetworkRequest</a>, <a href="qwebpage.html#NavigationType-enum">NavigationType</a>)</h3><p>This function is called whenever WebKit requests to navigate <i>frame</i> to the resource specified by <i>request</i> by means of the specified navigation type <i>type</i>.</p>
<p>If <i>frame</i> is a null pointer then navigation to a new window is requested. If the request is accepted <a href="qwebpage.html#createWindow">createWindow</a>() will be called.</p>
<p>The default implementation interprets the page's <a href="qwebpage.html#linkDelegationPolicy-prop">linkDelegationPolicy</a> and emits linkClicked accordingly or returns true to let <a href="qwebpage.html">QWebPage</a> handle the navigation itself.</p>
<p>See also <a href="qwebpage.html#createWindow">createWindow</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/action" />
<h3 class="fn"><a name="action" /><a href="qaction.html">QAction</a> QWebPage.action (<i>self</i>, <a href="qwebpage.html#WebAction-enum">WebAction</a>)</h3><p>Returns a <a href="qaction.html">QAction</a> for the specified <a href="qwebpage.html#WebAction-enum">WebAction</a> <i>action</i>.</p>
<p>The action is owned by the <a href="qwebpage.html">QWebPage</a> but you can customize the look by changing its properties.</p>
<p><a href="qwebpage.html">QWebPage</a> also takes care of implementing the action, so that upon triggering the corresponding action is performed on the page.</p>
<p>See also <a href="qwebpage.html#triggerAction">triggerAction</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/bytesReceived" />
<h3 class="fn"><a name="bytesReceived" />int QWebPage.bytesReceived (<i>self</i>)</h3><p>Returns the number of bytes that were received from the network to render the current page.</p>
<p>See also <a href="qwebpage.html#totalBytes">totalBytes</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/chooseFile" />
<h3 class="fn"><a name="chooseFile" />QString QWebPage.chooseFile (<i>self</i>, <a href="qwebframe.html">QWebFrame</a>, QString)</h3><p>This function is called when the web content requests a file name, for example as a result of the user clicking on a "file upload" button in a HTML form.</p>
<p>A suggested filename may be provided in <i>suggestedFile</i>. The frame originating the request is provided as <i>parentFrame</i>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/contentsChanged" />
<h3 class="fn"><a name="createPlugin" /><a href="qobject.html">QObject</a> QWebPage.createPlugin (<i>self</i>, QString, <a href="qurl.html">QUrl</a>, QStringList, QStringList)</h3><p>This function is called whenever WebKit encounters a HTML object element with type "application/x-qt-plugin". The <i>classid</i>, <i>url</i>, <i>paramNames</i> and <i>paramValues</i> correspond to the HTML object element attributes and child elements to configure the embeddable object.</p>
<a name="//apple_ref/cpp/instm/QWebPage/createStandardContextMenu" />
<h3 class="fn"><a name="createStandardContextMenu" /><a href="qmenu.html">QMenu</a> QWebPage.createStandardContextMenu (<i>self</i>)</h3><p>This function creates the standard context menu which is shown when the user clicks on the web page with the right mouse button. It is called from the default contextMenuEvent() handler. The popup menu's ownership is transferred to the caller.</p>
<p>This function was introduced in Qt 4.5.</p>
<a name="//apple_ref/cpp/instm/QWebPage/createWindow" />
<h3 class="fn"><a name="createWindow" /><a href="qwebpage.html">QWebPage</a> QWebPage.createWindow (<i>self</i>, <a href="qwebpage.html#WebWindowType-enum">WebWindowType</a>)</h3><p>This function is called whenever WebKit wants to create a new window of the given <i>type</i>, for example when a JavaScript program requests to open a document in a new window.</p>
<p>If the new window can be created, the new window's <a href="qwebpage.html">QWebPage</a> is returned; otherwise a null pointer is returned.</p>
<p>If the view associated with the web page is a <a href="qwebview.html">QWebView</a> object, then the default implementation forwards the request to <a href="qwebview.html">QWebView</a>'s createWindow() function; otherwise it returns a null pointer.</p>
<p>See also <a href="qwebpage.html#acceptNavigationRequest">acceptNavigationRequest</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/currentFrame" />
<h3 class="fn"><a name="currentFrame" /><a href="qwebframe.html">QWebFrame</a> QWebPage.currentFrame (<i>self</i>)</h3><p>Returns the frame currently active.</p>
<p>See also <a href="qwebpage.html#mainFrame">mainFrame</a>() and <a href="qwebpage.html#frameCreated">frameCreated</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/databaseQuotaExceeded" />
<h3 class="fn"><a name="event" />bool QWebPage.event (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/extension" />
<h3 class="fn"><a name="extension" />bool QWebPage.extension (<i>self</i>, <a href="qwebpage.html#Extension-enum">Extension</a>, <a href="qwebpage-extensionoption.html">ExtensionOption</a>&#160;<i>option</i>&#160;=&#160;None, <a href="qwebpage-extensionreturn.html">ExtensionReturn</a>&#160;<i>output</i>&#160;=&#160;None)</h3><p>This virtual function can be reimplemented in a <a href="qwebpage.html">QWebPage</a> subclass to provide support for extensions. The <i>option</i> argument is provided as input to the extension; the output results can be stored in <i>output</i>.</p>
<p>The behavior of this function is determined by <i>extension</i>.</p>
<p>You can call <a href="qwebpage.html#supportsExtension">supportsExtension</a>() to check if an extension is supported by the page.</p>
<p>Returns true if the extension was called successfully; otherwise returns false.</p>
<p>See also <a href="qwebpage.html#supportsExtension">supportsExtension</a>() and <a href="qwebpage.html#Extension-enum">Extension</a>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/findText" />
<h3 class="fn"><a name="findText" />bool QWebPage.findText (<i>self</i>, QString, <a href="qwebpage-findflags.html">FindFlags</a>&#160;<i>options</i>&#160;=&#160;0)</h3><p>Finds the specified string, <i>subString</i>, in the page, using the given <i>options</i>.</p>
<p>If the <a href="qwebpage.html#FindFlag-enum">HighlightAllOccurrences</a> flag is passed, the function will highlight all occurrences that exist in the page. All subsequent calls will extend the highlight, rather than replace it, with occurrences of the new string.</p>
<p>If the <a href="qwebpage.html#FindFlag-enum">HighlightAllOccurrences</a> flag is not passed, the function will select an occurrence and all subsequent calls will replace the current occurrence with the next one.</p>
<p>To clear the selection, just pass an empty string.</p>
<p>Returns true if <i>subString</i> was found; otherwise returns false.</p>
<a name="//apple_ref/cpp/instm/QWebPage/focusNextPrevChild" />
<h3 class="fn"><a name="focusNextPrevChild" />bool QWebPage.focusNextPrevChild (<i>self</i>, bool)</h3><p>Similar to QWidget.focusNextPrevChild it focuses the next focusable web element if <i>next</i> is true; otherwise the previous element is focused.</p>
<p>Returns true if it can find a new focusable element, or false if it can't.</p>
<a name="//apple_ref/cpp/instm/QWebPage/frameAt" />
<h3 class="fn"><a name="forwardUnsupportedContent" />bool QWebPage.forwardUnsupportedContent (<i>self</i>)</h3><h3 class="fn"><a name="frameAt" /><a href="qwebframe.html">QWebFrame</a> QWebPage.frameAt (<i>self</i>, <a href="qpoint.html">QPoint</a>)</h3><p>Returns the frame at the given point <i>pos</i>.</p>
<p>This function was introduced in Qt 4.6.</p>
<p>See also <a href="qwebpage.html#mainFrame">mainFrame</a>() and <a href="qwebpage.html#currentFrame">currentFrame</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/frameCreated" />
<h3 class="fn"><a name="history" /><a href="qwebhistory.html">QWebHistory</a> QWebPage.history (<i>self</i>)</h3><p>Returns a pointer to the view's history of navigated web pages.</p>
<a name="//apple_ref/cpp/instm/QWebPage/inputMethodQuery" />
<h3 class="fn"><a name="inputMethodQuery" />QVariant QWebPage.inputMethodQuery (<i>self</i>, <a href="qt.html#InputMethodQuery-enum">Qt.InputMethodQuery</a>)</h3><p>This method is used by the input method to query a set of properties of the page to be able to support complex input method operations as support for surrounding text and reconversions.</p>
<p><i>property</i> specifies which property is queried.</p>
<p>See also <a href="qwidget.html#inputMethodEvent">QWidget.inputMethodEvent</a>(), <a href="qinputmethodevent.html">QInputMethodEvent</a>, and <a href="qinputcontext.html">QInputContext</a>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/javaScriptAlert" />
<h3 class="fn"><a name="isContentEditable" />bool QWebPage.isContentEditable (<i>self</i>)</h3><h3 class="fn"><a name="isModified" />bool QWebPage.isModified (<i>self</i>)</h3><h3 class="fn"><a name="javaScriptAlert" />QWebPage.javaScriptAlert (<i>self</i>, <a href="qwebframe.html">QWebFrame</a>, QString)</h3><p>This function is called whenever a JavaScript program running inside <i>frame</i> calls the alert() function with the message <i>msg</i>.</p>
<p>The default implementation shows the message, <i>msg</i>, with QMessageBox.information.</p>
<a name="//apple_ref/cpp/instm/QWebPage/javaScriptConfirm" />
<h3 class="fn"><a name="javaScriptConfirm" />bool QWebPage.javaScriptConfirm (<i>self</i>, <a href="qwebframe.html">QWebFrame</a>, QString)</h3><p>This function is called whenever a JavaScript program running inside <i>frame</i> calls the confirm() function with the message, <i>msg</i>. Returns true if the user confirms the message; otherwise returns false.</p>
<p>The default implementation executes the query using QMessageBox.information with <a href="qmessagebox.html#StandardButton-enum">QMessageBox.Yes</a> and <a href="qmessagebox.html#StandardButton-enum">QMessageBox.No</a> buttons.</p>
<a name="//apple_ref/cpp/instm/QWebPage/javaScriptConsoleMessage" />
<h3 class="fn"><a name="javaScriptConsoleMessage" />QWebPage.javaScriptConsoleMessage (<i>self</i>, QString, int, QString)</h3><p>This function is called whenever a JavaScript program tries to print a <i>message</i> to the web browser's console.</p>
<p>For example in case of evaluation errors the source URL may be provided in <i>sourceID</i> as well as the <i>lineNumber</i>.</p>
<p>The default implementation prints nothing.</p>
<a name="//apple_ref/cpp/instm/QWebPage/javaScriptPrompt" />
<h3 class="fn"><a name="javaScriptPrompt" />(bool, QString&#160;<i>result</i>) QWebPage.javaScriptPrompt (<i>self</i>, <a href="qwebframe.html">QWebFrame</a>&#160;<i>originatingFrame</i>, QString&#160;<i>msg</i>, QString&#160;<i>defaultValue</i>)</h3><p>This function is called whenever a JavaScript program running inside <i>frame</i> tries to prompt the user for input. The program may provide an optional message, <i>msg</i>, as well as a default value for the input in <i>defaultValue</i>.</p>
<p>If the prompt was cancelled by the user the implementation should return false; otherwise the result should be written to <i>result</i> and true should be returned. If the prompt was not cancelled by the user, the implementation should return true and the result string must not be null.</p>
<p>The default implementation uses QInputDialog.getText.</p>
<a name="//apple_ref/cpp/instm/QWebPage/linkClicked" />
<h3 class="fn"><a name="javaScriptPrompt-2" />bool QWebPage.javaScriptPrompt (<i>self</i>, <a href="qwebframe.html">QWebFrame</a>, QString, QString, QString)</h3><h3 class="fn"><a name="linkDelegationPolicy" /><a href="qwebpage.html#LinkDelegationPolicy-enum">LinkDelegationPolicy</a> QWebPage.linkDelegationPolicy (<i>self</i>)</h3><h3 class="fn"><a name="mainFrame" /><a href="qwebframe.html">QWebFrame</a> QWebPage.mainFrame (<i>self</i>)</h3><p>Returns the main frame of the page.</p>
<p>The main frame provides access to the hierarchy of sub-frames and is also needed if you want to explicitly render a web page into a given painter.</p>
<p>See also <a href="qwebpage.html#currentFrame">currentFrame</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/menuBarVisibilityChangeRequested" />
<h3 class="fn"><a name="networkAccessManager" /><a href="qnetworkaccessmanager.html">QNetworkAccessManager</a> QWebPage.networkAccessManager (<i>self</i>)</h3><p>Returns the <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a> that is responsible for serving network requests for this <a href="qwebpage.html">QWebPage</a>.</p>
<p>See also <a href="qwebpage.html#setNetworkAccessManager">setNetworkAccessManager</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/pluginFactory" />
<h3 class="fn"><a name="palette" /><a href="qpalette.html">QPalette</a> QWebPage.palette (<i>self</i>)</h3><h3 class="fn"><a name="pluginFactory" /><a href="qwebpluginfactory.html">QWebPluginFactory</a> QWebPage.pluginFactory (<i>self</i>)</h3><p>Returns the <a href="qwebpluginfactory.html">QWebPluginFactory</a> that is responsible for creating plugins embedded into this <a href="qwebpage.html">QWebPage</a>. If no plugin factory is installed a null pointer is returned.</p>
<p>See also <a href="qwebpage.html#setPluginFactory">setPluginFactory</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/printRequested" />
<h3 class="fn"><a name="preferredContentsSize" /><a href="qsize.html">QSize</a> QWebPage.preferredContentsSize (<i>self</i>)</h3><h3 class="fn"><a name="selectedText" />QString QWebPage.selectedText (<i>self</i>)</h3><h3 class="fn"><a name="setContentEditable" />QWebPage.setContentEditable (<i>self</i>, bool)</h3><h3 class="fn"><a name="setForwardUnsupportedContent" />QWebPage.setForwardUnsupportedContent (<i>self</i>, bool)</h3><h3 class="fn"><a name="setLinkDelegationPolicy" />QWebPage.setLinkDelegationPolicy (<i>self</i>, <a href="qwebpage.html#LinkDelegationPolicy-enum">LinkDelegationPolicy</a>)</h3><h3 class="fn"><a name="setNetworkAccessManager" />QWebPage.setNetworkAccessManager (<i>self</i>, <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a>)</h3><p>Sets the <a href="qnetworkaccessmanager.html">QNetworkAccessManager</a> <i>manager</i> responsible for serving network requests for this <a href="qwebpage.html">QWebPage</a>.</p>
<p><b>Note:</b> It is currently not supported to change the network access manager after the <a href="qwebpage.html">QWebPage</a> has used it. The results of doing this are undefined.</p>
<p>See also <a href="qwebpage.html#networkAccessManager">networkAccessManager</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/setPluginFactory" />
<h3 class="fn"><a name="setPalette" />QWebPage.setPalette (<i>self</i>, <a href="qpalette.html">QPalette</a>)</h3><h3 class="fn"><a name="setPluginFactory" />QWebPage.setPluginFactory (<i>self</i>, <a href="qwebpluginfactory.html">QWebPluginFactory</a>)</h3><p>Sets the <a href="qwebpluginfactory.html">QWebPluginFactory</a> <i>factory</i> responsible for creating plugins embedded into this <a href="qwebpage.html">QWebPage</a>.</p>
<p>Note: The plugin factory is only used if the <a href="qwebsettings.html#WebAttribute-enum">QWebSettings.PluginsEnabled</a> attribute is enabled.</p>
<p>See also <a href="qwebpage.html#pluginFactory">pluginFactory</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/setView" />
<h3 class="fn"><a name="setPreferredContentsSize" />QWebPage.setPreferredContentsSize (<i>self</i>, <a href="qsize.html">QSize</a>)</h3><h3 class="fn"><a name="settings" /><a href="qwebsettings.html">QWebSettings</a> QWebPage.settings (<i>self</i>)</h3><p>Returns a pointer to the page's settings object.</p>
<p>See also <a href="qwebsettings.html#globalSettings">QWebSettings.globalSettings</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/shouldInterruptJavaScript" />
<h3 class="fn"><a name="setView" />QWebPage.setView (<i>self</i>, <a href="qwidget.html">QWidget</a>)</h3><p>Sets the <i>view</i> that is associated with the web page.</p>
<p>See also <a href="qwebpage.html#view">view</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/settings" />
<h3 class="fn"><a name="setViewportSize" />QWebPage.setViewportSize (<i>self</i>, <a href="qsize.html">QSize</a>)</h3><h3 class="fn"><a name="shouldInterruptJavaScript" />bool QWebPage.shouldInterruptJavaScript (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>bool shouldInterruptJavaScript()</tt>.</p><p>This function is called when a JavaScript program is running for a long period of time.</p>
<p>If the user wanted to stop the JavaScript the implementation should return true; otherwise false.</p>
<p>The default implementation executes the query using QMessageBox.information with <a href="qmessagebox.html#StandardButton-enum">QMessageBox.Yes</a> and <a href="qmessagebox.html#StandardButton-enum">QMessageBox.No</a> buttons.</p>
<p><b>Warning:</b> Because of binary compatibility constraints, this function is not virtual. If you want to provide your own implementation in a <a href="qwebpage.html">QWebPage</a> subclass, reimplement the shouldInterruptJavaScript() slot in your subclass instead. <a href="qtwebkit.html">QtWebKit</a> will dynamically detect the slot and call it.</p>
<p>This function was introduced in Qt 4.6.</p>
<a name="//apple_ref/cpp/instm/QWebPage/statusBarMessage" />
<h3 class="fn"><a name="supportsExtension" />bool QWebPage.supportsExtension (<i>self</i>, <a href="qwebpage.html#Extension-enum">Extension</a>)</h3><p>This virtual function returns true if the web page supports <i>extension</i>; otherwise false is returned.</p>
<p>See also <a href="qwebpage.html#extension">extension</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/swallowContextMenuEvent" />
<h3 class="fn"><a name="swallowContextMenuEvent" />bool QWebPage.swallowContextMenuEvent (<i>self</i>, <a href="qcontextmenuevent.html">QContextMenuEvent</a>)</h3><p>Filters the context menu event, <i>event</i>, through handlers for scrollbars and custom event handlers in the web page. Returns true if the event was handled; otherwise false.</p>
<p>A web page may swallow a context menu event through a custom event handler, allowing for context menus to be implemented in HTML/JavaScript. This is used by <a href="http://maps.google.com/">Google Maps</a>, for example.</p>
<a name="//apple_ref/cpp/instm/QWebPage/toolBarVisibilityChangeRequested" />
<h3 class="fn"><a name="totalBytes" />int QWebPage.totalBytes (<i>self</i>)</h3><p>Returns the total number of bytes that were received from the network to render the current page, including extra content such as embedded images.</p>
<p>See also <a href="qwebpage.html#bytesReceived">bytesReceived</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/triggerAction" />
<h3 class="fn"><a name="triggerAction" />QWebPage.triggerAction (<i>self</i>, <a href="qwebpage.html#WebAction-enum">WebAction</a>, bool&#160;<i>checked</i>&#160;=&#160;False)</h3><p>This function can be called to trigger the specified <i>action</i>. It is also called by <a href="qtwebkit.html">QtWebKit</a> if the user triggers the action, for example through a context menu item.</p>
<p>If <i>action</i> is a checkable action then <i>checked</i> specified whether the action is toggled or not.</p>
<p>See also <a href="qwebpage.html#action">action</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/undoStack" />
<h3 class="fn"><a name="undoStack" /><a href="qundostack.html">QUndoStack</a> QWebPage.undoStack (<i>self</i>)</h3><p>Returns a pointer to the undo stack used for editable content.</p>
<a name="//apple_ref/cpp/instm/QWebPage/unsupportedContent" />
<h3 class="fn"><a name="updatePositionDependentActions" />QWebPage.updatePositionDependentActions (<i>self</i>, <a href="qpoint.html">QPoint</a>)</h3><p>Updates the page's actions depending on the position <i>pos</i>. For example if <i>pos</i> is over an image element the <a href="qwebpage.html#WebAction-enum">CopyImageToClipboard</a> action is enabled.</p>
<a name="//apple_ref/cpp/instm/QWebPage/userAgentForUrl" />
<h3 class="fn"><a name="userAgentForUrl" />QString QWebPage.userAgentForUrl (<i>self</i>, <a href="qurl.html">QUrl</a>)</h3><p>This function is called when a user agent for HTTP requests is needed. You can reimplement this function to dynamically return different user agents for different URLs, based on the <i>url</i> parameter.</p>
<p>The default implementation returns the following value:</p>
<p>"Mozilla/5.0 (%Platform%; %Security%; %Subplatform%; %Locale%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko) %AppVersion Safari/%WebKitVersion%"</p>
<p>In this string the following values are replaced at run-time:</p>
<ul>
<li>%Platform% and %Subplatform% are expanded to the windowing system and the operation system.</li>
<li>%Security% expands to U if SSL is enabled, otherwise N. SSL is enabled if <a href="qsslsocket.html#supportsSsl">QSslSocket.supportsSsl</a>() returns true.</li>
<li>%Locale% is replaced with <a href="qlocale.html#name">QLocale.name</a>(). The locale is determined from the view of the <a href="qwebpage.html">QWebPage</a>. If no view is set on the <a href="qwebpage.html">QWebPage</a>, then a default constructed <a href="qlocale.html">QLocale</a> is used instead.</li>
<li>%WebKitVersion% is the version of WebKit the application was compiled against.</li>
<li>%AppVersion% expands to <a href="qcoreapplication.html#applicationName-prop">QCoreApplication.applicationName</a>()/<a href="qcoreapplication.html#applicationVersion-prop">QCoreApplication.applicationVersion</a>() if they're set; otherwise defaulting to Qt and the current Qt version.</li>
</ul>
<a name="//apple_ref/cpp/instm/QWebPage/view" />
<h3 class="fn"><a name="view" /><a href="qwidget.html">QWidget</a> QWebPage.view (<i>self</i>)</h3><p>Returns the view widget that is associated with the web page.</p>
<p>See also <a href="qwebpage.html#setView">setView</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/windowCloseRequested" />
<h3 class="fn"><a name="viewportSize" /><a href="qsize.html">QSize</a> QWebPage.viewportSize (<i>self</i>)</h3><hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="contentsChanged" />void contentsChanged ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the text in form elements changes as well as other editable content.</p>
<p>This function was introduced in Qt 4.5.</p>
<p>See also <a href="qwebpage.html#contentEditable-prop">contentEditable</a>, <a href="qwebframe.html#toHtml">QWebFrame.toHtml</a>(), and <a href="qwebframe.html#toPlainText">QWebFrame.toPlainText</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/createPlugin" />
<h3 class="fn"><a name="databaseQuotaExceeded" />void databaseQuotaExceeded (QWebFrame *,QString)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the web site shown in <i>frame</i> is asking to store data to the database <i>databaseName</i> and the quota allocated to that web site is exceeded.</p>
<p>This function was introduced in Qt 4.5.</p>
<a name="//apple_ref/cpp/instm/QWebPage/downloadRequested" />
<h3 class="fn"><a name="downloadRequested" />void downloadRequested (const QNetworkRequest&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the user decides to download a link. The url of the link as well as additional meta-information is contained in <i>request</i>.</p>
<p>See also <a href="qwebpage.html#unsupportedContent">unsupportedContent</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/event" />
<h3 class="fn"><a name="frameCreated" />void frameCreated (QWebFrame *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the page creates a new <i>frame</i>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/geometryChangeRequested" />
<h3 class="fn"><a name="geometryChangeRequested" />void geometryChangeRequested (const QRect&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the document wants to change the position and size of the page to <i>geom</i>. This can happen for example through JavaScript.</p>
<a name="//apple_ref/cpp/instm/QWebPage/history" />
<h3 class="fn"><a name="linkClicked" />void linkClicked (const QUrl&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the user clicks on a link and the page's <a href="qwebpage.html#linkDelegationPolicy-prop">linkDelegationPolicy</a> property is set to delegate the link handling for the specified <i>url</i>.</p>
<p>By default no links are delegated and are handled by <a href="qwebpage.html">QWebPage</a> instead.</p>
<p>See also <a href="qwebpage.html#linkHovered">linkHovered</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/linkHovered" />
<h3 class="fn"><a name="linkHovered" />void linkHovered (const QString&amp;,const QString&amp;,const QString&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the mouse hovers over a link.</p>
<p><i>link</i> contains the link url. <i>title</i> is the link element's title, if it is specified in the markup. <i>textContent</i> provides text within the link element, e.g., text inside an HTML anchor tag.</p>
<p>When the mouse leaves the link element the signal is emitted with empty parameters.</p>
<p>See also <a href="qwebpage.html#linkClicked">linkClicked</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/loadFinished" />
<h3 class="fn"><a name="loadFinished" />void loadFinished (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when a load of the page is finished. <i>ok</i> will indicate whether the load was successful or any error occurred.</p>
<p>See also <a href="qwebpage.html#loadStarted">loadStarted</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/loadProgress" />
<h3 class="fn"><a name="loadProgress" />void loadProgress (int)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the global progress status changes. The current value is provided by <i>progress</i> and scales from 0 to 100, which is the default range of <a href="qprogressbar.html">QProgressBar</a>. It accumulates changes from all the child frames.</p>
<p>See also <a href="qwebpage.html#bytesReceived">bytesReceived</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/loadStarted" />
<h3 class="fn"><a name="loadStarted" />void loadStarted ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when a new load of the page is started.</p>
<p>See also <a href="qwebpage.html#loadFinished">loadFinished</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/mainFrame" />
<h3 class="fn"><a name="menuBarVisibilityChangeRequested" />void menuBarVisibilityChangeRequested (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the visibility of the menubar in a web browser window that hosts <a href="qwebpage.html">QWebPage</a> should be changed to <i>visible</i>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/microFocusChanged" />
<h3 class="fn"><a name="microFocusChanged" />void microFocusChanged ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when for example the position of the cursor in an editable form element changes. It is used inform input methods about the new on-screen position where the user is able to enter text. This signal is usually connected to <a href="qwidget.html">QWidget</a>'s updateMicroFocus() slot.</p>
<a name="//apple_ref/cpp/instm/QWebPage/networkAccessManager" />
<h3 class="fn"><a name="printRequested" />void printRequested (QWebFrame *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the page requests the web browser to print <i>frame</i>, for example through the JavaScript <tt>window.print()</tt> call.</p>
<p>See also <a href="qwebframe.html#print">QWebFrame.print</a>() and <a href="qprintpreviewdialog.html">QPrintPreviewDialog</a>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/repaintRequested" />
<h3 class="fn"><a name="repaintRequested" />void repaintRequested (const QRect&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever this <a href="qwebpage.html">QWebPage</a> should be updated and no view was set. <i>dirtyRect</i> contains the area that needs to be updated. To paint the <a href="qwebpage.html">QWebPage</a> get the <a href="qwebpage.html#mainFrame">mainFrame</a>() and call the render(<a href="qpainter.html">QPainter</a>*, const <a href="qregion.html">QRegion</a>&amp;) method with the <i>dirtyRect</i> as the second parameter.</p>
<p>See also <a href="qwebpage.html#mainFrame">mainFrame</a>() and <a href="qwebpage.html#view">view</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/restoreFrameStateRequested" />
<h3 class="fn"><a name="restoreFrameStateRequested" />void restoreFrameStateRequested (QWebFrame *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the load of <i>frame</i> is finished and the application may now update its state accordingly.</p>
<p>This function was introduced in Qt 4.5.</p>
<a name="//apple_ref/cpp/instm/QWebPage/saveFrameStateRequested" />
<h3 class="fn"><a name="saveFrameStateRequested" />void saveFrameStateRequested (QWebFrame *,QWebHistoryItem *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted shortly before the history of navigated pages in <i>frame</i> is changed, for example when navigating back in the history.</p>
<p>The provided <a href="qwebhistoryitem.html">QWebHistoryItem</a>, <i>item</i>, holds the history entry of the frame before the change.</p>
<p>A potential use-case for this signal is to store custom data in the <a href="qwebhistoryitem.html">QWebHistoryItem</a> associated to the frame, using <a href="qwebhistoryitem.html#setUserData">QWebHistoryItem.setUserData</a>().</p>
<p>This function was introduced in Qt 4.5.</p>
<a name="//apple_ref/cpp/instm/QWebPage/scrollRequested" />
<h3 class="fn"><a name="scrollRequested" />void scrollRequested (int,int,const QRect&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the content given by <i>rectToScroll</i> needs to be scrolled <i>dx</i> and <i>dy</i> downwards and no view was set.</p>
<p>See also <a href="qwebpage.html#view">view</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/selectionChanged" />
<h3 class="fn"><a name="selectionChanged" />void selectionChanged ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the selection changes.</p>
<p>See also <a href="qwebpage.html#selectedText-prop">selectedText</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/setNetworkAccessManager" />
<h3 class="fn"><a name="statusBarMessage" />void statusBarMessage (const QString&amp;)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when the statusbar <i>text</i> is changed by the page.</p>
<a name="//apple_ref/cpp/instm/QWebPage/statusBarVisibilityChangeRequested" />
<h3 class="fn"><a name="statusBarVisibilityChangeRequested" />void statusBarVisibilityChangeRequested (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the visibility of the statusbar in a web browser window that hosts <a href="qwebpage.html">QWebPage</a> should be changed to <i>visible</i>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/supportsExtension" />
<h3 class="fn"><a name="toolBarVisibilityChangeRequested" />void toolBarVisibilityChangeRequested (bool)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the visibility of the toolbar in a web browser window that hosts <a href="qwebpage.html">QWebPage</a> should be changed to <i>visible</i>.</p>
<a name="//apple_ref/cpp/instm/QWebPage/totalBytes" />
<h3 class="fn"><a name="unsupportedContent" />void unsupportedContent (QNetworkReply *)</h3><p>This is the default overload of this signal.</p><p>This signal is emitted when WebKit cannot handle a link the user navigated to.</p>
<p>At signal emission time the meta-data of the <a href="qnetworkreply.html">QNetworkReply</a> <i>reply</i> is available.</p>
<p><b>Note:</b> This signal is only emitted if the <a href="qwebpage.html#forwardUnsupportedContent-prop">forwardUnsupportedContent</a> property is set to true.</p>
<p>See also <a href="qwebpage.html#downloadRequested">downloadRequested</a>().</p>
<a name="//apple_ref/cpp/instm/QWebPage/updatePositionDependentActions" />
<h3 class="fn"><a name="windowCloseRequested" />void windowCloseRequested ()</h3><p>This is the default overload of this signal.</p><p>This signal is emitted whenever the page requests the web browser window to be closed, for example through the JavaScript <tt>window.close()</tt> call.</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.7.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2010</td><td align="right" width="25%">Qt&#160;4.6.2</td></tr></table></div></address></body></html>