|  | Home · All Classes · Modules

# QWebPage Class Reference
[QtWebKit module]

The QWebPage class provides an object to view and edit web documents. More...

Inherits QObject.

### Types

- enum Extension { }
- class ExtensionOption
- class ExtensionReturn
- enum FindFlag { FindBackward, FindCaseSensitively, FindWrapsAroundDocument }
- class FindFlags
- enum LinkDelegationPolicy { DontDelegateLinks, DelegateExternalLinks, DelegateAllLinks }
- enum NavigationType { NavigationTypeLinkClicked, NavigationTypeFormSubmitted, NavigationTypeBackOrForward, NavigationTypeReload, NavigationTypeFormResubmitted, NavigationTypeOther }
- enum WebAction { NoWebAction, OpenLink, OpenLinkInNewWindow, OpenFrameInNewWindow, ..., InspectElement }
- enum WebWindowType { WebBrowserWindow, WebModalDialog }

### Methods

- __init__ (self, QObject parent = None)
- bool acceptNavigationRequest (self, QWebFrame frame, QNetworkRequest request, NavigationType type)
- QAction action (self, WebAction action)
- unsigned long bytesReceived (self)
- QString chooseFile (self, QWebFrame originatingFrame, QString oldFile)
- QObject createPlugin (self, QString classid, QUrl url, QStringList paramNames, QStringList paramValues)
- QWebPage createWindow (self, WebWindowType type)
- QWebFrame currentFrame (self)
- bool event (self, QEvent)
- bool extension (self, Extension extension, ExtensionOption option = None, ExtensionReturn output = None)
- bool findText (self, QString subString, FindFlags options = 0)
- bool focusNextPrevChild (self, bool next)
- bool forwardUnsupportedContent (self)
- QWebHistory history (self)
- QVariant inputMethodQuery (self, Qt.InputMethodQuery property)
- bool isModified (self)
- javaScriptAlert (self, QWebFrame originatingFrame, QString msg)
- bool javaScriptConfirm (self, QWebFrame originatingFrame, QString msg)
- javaScriptConsoleMessage (self, QString message, int lineNumber, QString sourceID)
- bool javaScriptPrompt (self, QWebFrame originatingFrame, QString msg, QString defaultValue, QString result)
- LinkDelegationPolicy linkDelegationPolicy (self)
- QWebFrame mainFrame (self)
- QNetworkAccessManager networkAccessManager (self)
- QPalette palette (self)
- QWebPluginFactory pluginFactory (self)
- QString selectedText (self)
- setForwardUnsupportedContent (self, bool forward)
- setLinkDelegationPolicy (self, LinkDelegationPolicy policy)
- setNetworkAccessManager (self, QNetworkAccessManager manager)
- setPalette (self, QPalette palette)
- setPluginFactory (self, QWebPluginFactory factory)
- QWebSettings settings (self)
- setView (self, QWidget view)
- setViewportSize (self, QSize size)
- bool supportsExtension (self, Extension extension)
- bool swallowContextMenuEvent (self, QContextMenuEvent event)
- unsigned long totalBytes (self)
- triggerAction (self, WebAction action, bool checked = False)
- QUndoStack undoStack (self)
- updatePositionDependentActions (self, QPoint pos)
- QString userAgentForUrl (self, QUrl url)
- QWidget view (self)
- QSize viewportSize (self)

### Qt Signals

- void downloadRequested (const QNetworkRequest&)
- void frameCreated (QWebFrame *)
- void geometryChangeRequested (const QRect&)
- void linkClicked (const QUrl&)
- void linkHovered (const QString&,const QString&,const QString&)
- void loadFinished (bool)
- void loadProgress (int)
- void loadStarted ()
- void menuBarVisibilityChangeRequested (bool)
- void microFocusChanged ()
- void printRequested (QWebFrame *)
- void repaintRequested (const QRect&)
- void scrollRequested (int,int,const QRect&)
- void selectionChanged ()
- void statusBarMessage (const QString&)
- void statusBarVisibilityChangeRequested (bool)
- void toolBarVisibilityChangeRequested (bool)
- void unsupportedContent (QNetworkReply *)
- void windowCloseRequested ()

## Detailed Description

The QWebPage class provides an object to view and edit web documents.

QWebPage holds a main frame responsible for web content, settings, the history of navigated links and actions. This class can be used, together with QWebFrame, to provide functionality like QWebView in a widget-less environment.

QWebPage's API is very similar to QWebView, as you are still provided with common functions like action() (known as pageAction() in QWebView), triggerAction(), findText() and settings(). More QWebView-like functions can be found in the main frame of QWebPage, obtained via QWebPage.mainFrame(). For example, the load(), setUrl() and setHtml() unctions for QWebPage can be accessed using QWebFrame.

The loadStarted() signal is emitted when the page begins to load.The loadProgress() 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 loadFinished() signal is emitted when the page has loaded completely. Its argument, either true or false, indicates whether or not the load operation succeeded.

### Using QWebPage in a Widget-less Environment

Before you begin painting a QWebPage object, you need to set the size of the viewport by calling setViewportSize(). Then, you invoke the main frame's render function (QWebFrame.render()). An example of this is shown in the code snippet below.

Suppose we have a `Thumbnail` class as follows:

     class Thumbnailer : public QObject
     {
         Q_OBJECT

     public:
         Thumbnailer(const QUrl &url);

     signals:
         void finished();

     private slots:
         void render();

     private:
         QWebPage page;

     };

The `Thumbnail`'s constructor takes in a url. We connect our QWebPage object's loadFinished() signal to our private slot, `render()`.

     Thumbnailer.Thumbnailer(const QUrl &url)
     {
         page.mainFrame()->load(url);
         connect(&page, SIGNAL(loadFinished(bool)),
             this, SLOT(render()));
     }

The `render()` function shows how we can paint a thumbnail using a QWebPage object.

     void Thumbnailer.render()
     {
         page.setViewportSize(page.mainFrame()->contentsSize());
         QImage image(page.viewportSize(), QImage.Format_ARGB32);
         QPainter painter(&image);

         page.mainFrame()->render(&painter);
         painter.end();

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

         emit finished();
     }

We begin by setting the viewportSize and then we instantiate a QImage object, `image`, with the same size as our viewportSize. This image is then sent as a parameter to `painter`. Next, we render the contents of the main frame and its subframes into `painter`. Finally, we save the scaled image.

See also QWebFrame.

## Type Documentation

### QWebPage.Extension

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 supportsExtension().

Currently there are no extensions.

### QWebPage.FindFlag

This enum describes the options available to QWebPage's findText() function. The options can be OR-ed together from the following list:

Constant | Value | Description
--- | --- | ---
`QWebPage.FindBackward` | `1` | Searches backwards instead of forwards.
`QWebPage.FindCaseSensitively` | `2` | By default findText() works case insensitive. Specifying this option changes the behaviour to a case sensitive find operation.
`QWebPage.FindWrapsAroundDocument` | `4` | Makes findText() restart from the beginning of the document if the end was reached and the text was not found.

The FindFlags type is a typedef for QFlags<FindFlag>. It stores an OR combination of FindFlag values.

### QWebPage.LinkDelegationPolicy

This enum defines the delegation policies a webpage can have when activating links and emitting the linkClicked() signal.

Constant | Value | Description
--- | --- | ---
`QWebPage.DontDelegateLinks` | `0` | No links are delegated. Instead, QWebPage tries to handle them all.
`QWebPage.DelegateExternalLinks` | `1` | When activating links that point to documents not stored on the local filesystem or an equivalent - such as the Qt resource system - then linkClicked() is emitted.
`QWebPage.DelegateAllLinks` | `2` | Whenever a link is activated the linkClicked() signal is emitted.

### QWebPage.NavigationType

This enum describes the types of navigation available when browsing through hyperlinked documents.

Constant | Value | Description
--- | --- | ---
`QWebPage.NavigationTypeLinkClicked` | `0` | The user clicked on a link or pressed return on a focused link.
`QWebPage.NavigationTypeFormSubmitted` | `1` | The user activated a submit button for an HTML form.
`QWebPage.NavigationTypeBackOrForward` | `2` | Navigation to a previously shown document in the back or forward history is requested.
`QWebPage.NavigationTypeReload` | `3` | The user activated the reload action.
`QWebPage.NavigationTypeFormResubmitted` | `4` | An HTML form was submitted a second time.
`QWebPage.NavigationTypeOther` | `5` | A navigation to another document using a method not listed above.

### QWebPage.WebAction

Constant | Value | Description
--- | --- | ---
`QWebPage.NoWebAction` | `-1` | No action is triggered.
`QWebPage.OpenLink` | `0` | Open the current link.
`QWebPage.OpenLinkInNewWindow` | `1` | Open the current link in a new window.
`QWebPage.OpenFrameInNewWindow` | `2` | Replicate the current frame in a new window.
`QWebPage.DownloadLinkToDisk` | `3` | Download the current link to the disk.
`QWebPage.CopyLinkToClipboard` | `4` | Copy the current link to the clipboard.
`QWebPage.OpenImageInNewWindow` | `5` | Open the highlighted image in a new window.
`QWebPage.DownloadImageToDisk` | `6` | Download the highlighted image to the disk.
`QWebPage.CopyImageToClipboard` | `7` | Copy the highlighted image to the clipboard.
`QWebPage.Back` | `8` | Navigate back in the history of navigated links.
`QWebPage.Forward` | `9` | Navigate forward in the history of navigated links.
`QWebPage.Stop` | `10` | Stop loading the current page.
`QWebPage.Reload` | `11` | Reload the current page.
`QWebPage.Cut` | `12` | Cut the content currently selected into the clipboard.
`QWebPage.Copy` | `13` | Copy the content currently selected into the clipboard.
`QWebPage.Paste` | `14` | Paste content from the clipboard.
`QWebPage.Undo` | `15` | Undo the last editing action.
`QWebPage.Redo` | `16` | Redo the last editing action.
`QWebPage.MoveToNextChar` | `17` | Move the cursor to the next character.
`QWebPage.MoveToPreviousChar` | `18` | Move the cursor to the previous character.
`QWebPage.MoveToNextWord` | `19` | Move the cursor to the next word.
`QWebPage.MoveToPreviousWord` | `20` | Move the cursor to the previous word.
`QWebPage.MoveToNextLine` | `21` | Move the cursor to the next line.
`QWebPage.MoveToPreviousLine` | `22` | Move the cursor to the previous line.
`QWebPage.MoveToStartOfLine` | `23` | Move the cursor to the start of the line.
`QWebPage.MoveToEndOfLine` | `24` | Move the cursor to the end of the line.
`QWebPage.MoveToStartOfBlock` | `25` | Move the cursor to the start of the block.
`QWebPage.MoveToEndOfBlock` | `26` | Move the cursor to the end of the block.
`QWebPage.MoveToStartOfDocument` | `27` | Move the cursor to the start of the document.
`QWebPage.MoveToEndOfDocument` | `28` | Move the cursor to the end of the document.
`QWebPage.SelectNextChar` | `29` | Select to the next character.
`QWebPage.SelectPreviousChar` | `30` | Select to the previous character.
`QWebPage.SelectNextWord` | `31` | Select to the next word.
`QWebPage.SelectPreviousWord` | `32` | Select to the previous word.
`QWebPage.SelectNextLine` | `33` | Select to the next line.
`QWebPage.SelectPreviousLine` | `34` | Select to the previous line.
`QWebPage.SelectStartOfLine` | `35` | Select to the start of the line.
`QWebPage.SelectEndOfLine` | `36` | Select to the end of the line.
`QWebPage.SelectStartOfBlock` | `37` | Select to the start of the block.
`QWebPage.SelectEndOfBlock` | `38` | Select to the end of the block.
`QWebPage.SelectStartOfDocument` | `39` | Select to the start of the document.
`QWebPage.SelectEndOfDocument` | `40` | Select to the end of the document.
`QWebPage.DeleteStartOfWord` | `41` | Delete to the start of the word.
`QWebPage.DeleteEndOfWord` | `42` | Delete to the end of the word.
`QWebPage.SetTextDirectionDefault` | `43` | Set the text direction to the default direction.
`QWebPage.SetTextDirectionLeftToRight` | `44` | Set the text direction to left-to-right.
`QWebPage.SetTextDirectionRightToLeft` | `45` | Set the text direction to right-to-left.
`QWebPage.ToggleBold` | `46` | Toggle the formatting between bold and normal weight.
`QWebPage.ToggleItalic` | `47` | Toggle the formatting between italic and normal style.
`QWebPage.ToggleUnderline` | `48` | Toggle underlining.
`QWebPage.InspectElement` | `49` | Show the Web Inspector with the currently highlighted HTML element.

### QWebPage.WebWindowType

Constant | Value | Description
--- | --- | ---
`QWebPage.WebBrowserWindow` | `0` | The window is a regular web browser window.
`QWebPage.WebModalDialog` | `1` | The window acts as modal dialog.

## Method Documentation

### QWebPage.__init__ (self, QObject parent = None)

The parent argument, if not None, causes self to be owned by Qt instead of PyQt.

Constructs an empty QWebView with parent parent.

### bool QWebPage.acceptNavigationRequest (self, QWebFrame frame, QNetworkRequest request, NavigationType type)

This function is called whenever WebKit requests to navigate frame to the resource specified by request by means of the specified navigation type type.

If frame is a null pointer then navigation to a new window is requested. If the request is accepted createWindow() will be called.

The default implementation interprets the page's linkDelegationPolicy and emits linkClicked accordingly or returns true to let QWebPage handle the navigation itself.

See also createWindow().

### QAction QWebPage.action (self, WebAction action)

Returns a QAction for the specified WebAction action.

The action is owned by the QWebPage but you can customize the look by changing its properties.

QWebPage also takes care of implementing the action, so that upon triggering the corresponding action is performed on the page.

See also triggerAction().

### unsigned long QWebPage.bytesReceived (self)

Returns the number of bytes that were received from the network to render the current page.

See also totalBytes().

### QString QWebPage.chooseFile (self, QWebFrame originatingFrame, QString oldFile)

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.

A suggested filename may be provided in suggestedFile. The frame originating the request is provided as parentFrame.

### QObject QWebPage.createPlugin (self, QString classid, QUrl url, QStringList paramNames, QStringList paramValues)

This function is called whenever WebKit encounters a HTML object element with type "application/x-qt-plugin". The classid, url, paramNames and paramValues correspond to the HTML object element attributes and child elements to configure the embeddable object.

### QWebPage QWebPage.createWindow (self, WebWindowType type)

This function is called whenever WebKit wants to create a new window of the given type, for example when a JavaScript program requests to open a document in a new window.

If the new window can be created, the new window's QWebPage is returned; otherwise a null pointer is returned.

If the view associated with the web page is a QWebView object, then the default implementation forwards the request to QWebView's createWindow() function; otherwise it returns a null pointer.

See also acceptNavigationRequest().

### QWebFrame QWebPage.currentFrame (self)

Returns the frame currently active.

See also mainFrame() and frameCreated().

### bool QWebPage.event (self, QEvent)

### bool QWebPage.extension (self, Extension extension, ExtensionOption option = None, ExtensionReturn output = None)

This virtual function can be reimplemented in a QWebPage subclass to provide support for extensions. The option argument is provided as input to the extension; the output results can be stored in output.

The behavior of this function is determined by extension.

You can call supportsExtension() to check if an extension is supported by the page.

By default, no extensions are supported, and this function returns false.

See also supportsExtension() and Extension.

### bool QWebPage.findText (self, QString subString, FindFlags options = 0)

Finds the next occurrence of the string, subString, in the page, using the given options. Returns true of subString was found and selects the match visually; otherwise returns false.

### bool QWebPage.focusNextPrevChild (self, bool next)

Similar to QWidget.focusNextPrevChild it focuses the next focusable web element if next is true; otherwise the previous element is focused.

Returns true if it can find a new focusable element, or false if it can't.

### bool QWebPage.forwardUnsupportedContent (self)

### QWebHistory QWebPage.history (self)

Returns a pointer to the view's history of navigated web pages.

### QVariant QWebPage.inputMethodQuery (self, Qt.InputMethodQuery property)

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.

property specifies which property is queried.

See also QWidget.inputMethodEvent(), QInputMethodEvent, and QInputContext.

### bool QWebPage.isModified (self)

### QWebPage.javaScriptAlert (self, QWebFrame originatingFrame, QString msg)

This function is called whenever a JavaScript program running inside frame calls the alert() function with the message msg.

The default implementation shows the message, msg, with QMessageBox.information.

### bool QWebPage.javaScriptConfirm (self, QWebFrame originatingFrame, QString msg)

This function is called whenever a JavaScript program running inside frame calls the confirm() function with the message, msg. Returns true if the user confirms the message; otherwise returns false.

The default implementation executes the query using QMessageBox.information with QMessageBox.Yes and QMessageBox.No buttons.

### QWebPage.javaScriptConsoleMessage (self, QString message, int lineNumber, QString sourceID)

This function is called whenever a JavaScript program tries to print a message to the web browser's console.

For example in case of evaluation errors the source URL may be provided in sourceID as well as the lineNumber.

The default implementation prints nothing.

### bool QWebPage.javaScriptPrompt (self, QWebFrame originatingFrame, QString msg, QString defaultValue, QString result)

This function is called whenever a JavaScript program running inside frame tries to prompt the user for input. The program may provide an optional message, msg, as well as a default value for the input in defaultValue.

If the prompt was cancelled by the user the implementation should return false; otherwise the result should be written to result and true should be returned.

The default implementation uses QInputDialog.getText.

### LinkDelegationPolicy QWebPage.linkDelegationPolicy (self)

### QWebFrame QWebPage.mainFrame (self)

Returns the main frame of the page.

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.

See also currentFrame().

### QNetworkAccessManager QWebPage.networkAccessManager (self)

Returns the QNetworkAccessManager that is responsible for serving network requests for this QWebPage.

See also setNetworkAccessManager().

### QPalette QWebPage.palette (self)

### QWebPluginFactory QWebPage.pluginFactory (self)

Returns the QWebPluginFactory that is responsible for creating plugins embedded into this QWebPage. If no plugin factory is installed a null pointer is returned.

See also setPluginFactory().

### QString QWebPage.selectedText (self)

### QWebPage.setForwardUnsupportedContent (self, bool forward)

### QWebPage.setLinkDelegationPolicy (self, LinkDelegationPolicy policy)

### QWebPage.setNetworkAccessManager (self, QNetworkAccessManager manager)

Sets the QNetworkAccessManager manager responsible for serving network requests for this QWebPage.

See also networkAccessManager().

### QWebPage.setPalette (self, QPalette palette)

### QWebPage.setPluginFactory (self, QWebPluginFactory factory)

Sets the QWebPluginFactory factory responsible for creating plugins embedded into this QWebPage.

Note: The plugin factory is only used if the QWebSettings.PluginsEnabled attribute is enabled.

See also pluginFactory().

### QWebSettings QWebPage.settings (self)

Returns a pointer to the page's settings object.

See also QWebSettings.globalSettings().

### QWebPage.setView (self, QWidget view)

Sets the view that is associated with the web page.

See also view().

### QWebPage.setViewportSize (self, QSize size)

### bool QWebPage.supportsExtension (self, Extension extension)

This virtual function returns true if the web page supports extension; otherwise false is returned.

See also extension().

### bool QWebPage.swallowContextMenuEvent (self, QContextMenuEvent event)

Filters the context menu event, event, through handlers for scrollbars and custom event handlers in the web page. Returns true if the event was handled; otherwise false.

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 Google Maps, for example.

### unsigned long QWebPage.totalBytes (self)

Returns the total number of bytes that were received from the network to render the current page, including extra content such as embedded images.

See also bytesReceived().

### QWebPage.triggerAction (self, WebAction action, bool checked = False)

This function can be called to trigger the specified action. It is also called by QtWebKit if the user triggers the action, for example through a context menu item.

If action is a checkable action then checked specified whether the action is toggled or not.

See also action().

### QUndoStack QWebPage.undoStack (self)

Returns a pointer to the undo stack used for editable content.

### QWebPage.updatePositionDependentActions (self, QPoint pos)

Updates the page's actions depending on the position pos. For example if pos is over an image element the CopyImageToClipboard action is enabled.

### QString QWebPage.userAgentForUrl (self, QUrl url)

This function is called when a user agent for HTTP requests is needed. You can re-implement this function to dynamically return different user agent's for different urls, based on the url parameter.

The default implementation returns the following value:

"Mozilla/5.0 (%Platform%; %Security%; %Subplatform%; %Locale%) AppleWebKit/%WebKitVersion% (KHTML, like Gecko, Safari/419.3) %AppVersion"

In this string the following values are replaced at run-time:

- %Platform% and %Subplatform% are expanded to the windowing system and the operation system.
- %Security% expands to U if SSL is enabled, otherwise N. SSL is enabled if QSslSocket.supportsSsl() returns true.
- %Locale% is replaced with QLocale.name().
- %WebKitVersion% currently expands to 523.15
- %AppVersion% expands to QCoreApplication.applicationName()/QCoreApplication.applicationVersion() if they're set; otherwise defaulting to Qt and the current Qt version.

### QWidget QWebPage.view (self)

Returns the view widget that is associated with the web page.

See also setView().

### QSize QWebPage.viewportSize (self)

## Qt Signal Documentation

### void downloadRequested (const QNetworkRequest&)

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 request.

See also unsupportedContent().

### void frameCreated (QWebFrame *)

This signal is emitted whenever the page creates a new frame.

### void geometryChangeRequested (const QRect&)

This signal is emitted whenever the document wants to change the position and size of the page to geom. This can happen for example through JavaScript.

### void linkClicked (const QUrl&)

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 url.

By default no links are delegated and are handled by QWebPage instead.

See also linkHovered().

### void linkHovered (const QString&,const QString&,const QString&)

This signal is emitted when the mouse is hovering over a link. The first parameter is the link url, the second is the link title if any, and third textContent is the text content. Method is emitter with both empty parameters when the mouse isn't hovering over any link element.

See also linkClicked().

### void loadFinished (bool)

This signal is emitted when a load of the page is finished. ok will indicate whether the load was successful or any error occurred.

See also loadStarted().

### void loadProgress (int)

This signal is emitted when the global progress status changes. The current value is provided by progress and scales from 0 to 100, which is the default range of QProgressBar. It accumulates changes from all the child frames.

See also bytesReceived().

### void loadStarted ()

This signal is emitted when a new load of the page is started.

See also loadFinished().

### void menuBarVisibilityChangeRequested (bool)

This signal is emitted whenever the visibility of the menubar in a web browser window that hosts QWebPage should be changed to visible.

### void microFocusChanged ()

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 QWidget's updateMicroFocus() slot.

### void printRequested (QWebFrame *)

This signal is emitted whenever the page requests the web browser to print frame, for example through the JavaScript `window.print()` call.

See also QWebFrame.print() and QPrintPreviewDialog.

### void repaintRequested (const QRect&)

This signal is emitted whenever this QWebPage should be updated and no view was set. dirtyRect contains the area that needs to be updated. To paint the QWebPage get the mainFrame() and call the render(QPainter*, const QRegion&) method with the dirtyRect as the second parameter.

See also mainFrame() and view().

### void scrollRequested (int,int,const QRect&)

This signal is emitted whenever the content given by rectToScroll needs to be scrolled dx and dy downwards and no view was set.

See also view().

### void selectionChanged ()

This signal is emitted whenever the selection changes.

See also selectedText().

### void statusBarMessage (const QString&)

This signal is emitted when the statusbar text is changed by the page.

### void statusBarVisibilityChangeRequested (bool)

This signal is emitted whenever the visibility of the statusbar in a web browser window that hosts QWebPage should be changed to visible.

### void toolBarVisibilityChangeRequested (bool)

This signal is emitted whenever the visibility of the toolbar in a web browser window that hosts QWebPage should be changed to visible.

### void unsupportedContent (QNetworkReply *)

This signals is emitted when webkit cannot handle a link the user navigated to.

At signal emissions time the meta data of the QNetworkReply reply is available.

Note: This signal is only emitted if the forwardUnsupportedContent property is set to true.

See also downloadRequested().

### void windowCloseRequested ()

This signal is emitted whenever the page requests the web browser window to be closed, for example through the JavaScript `window.close()` call.