QWebInspector

注意

该类在 Qt4.6 引入

概要

函数

详细描述

PySide.QtWebKit.QWebInspector class allows the placement and control of a PySide.QtWebKit.QWebPage ‘s inspector. The inspector can display a page's hierarchy, its loading statistics and the current state of its individual elements. It is mostly used by web developers.

PySide.QtWebKit.QWebPage to be inspected must be specified using the PySide.QtWebKit.QWebInspector.setPage() 方法。

A typical use of PySide.QtWebKit.QWebInspector follows:

# ...
page = QWebPage()
# ...
inspector = QWebInspector()
inspector.setPage(page)
										

A PySide.QtWebKit.QWebInspector can be made visible either programmatically using PySide.QtGui.QWidget.setVisible() , or by the user through the attached PySide.QtWebKit.QWebPage ‘s context menu.

注意

A PySide.QtWebKit.QWebInspector will display a blank widget if either:

资源

This class acts mostly as a container and a controller for the inspector. Most of the resources needed by the inspector are owned by the associated PySide.QtWebKit.QWebPage and are allocated the first time that:

Inspector configuration persistence

The inspector allows the user to configure some options through its user interface (e.g. the resource tracking “Always enable” option). These settings will be persisted automatically by QtWebKit only if your application previously called QCoreApplication.setOrganizationName() and QCoreApplication.setApplicationName() 。见 PySide.QtCore.QSettings ‘s default constructor documentation for an explanation of why this is necessary.
class PySide.QtWebKit. QWebInspector ( [ parent=None ] )
参数: parent PySide.QtGui.QWidget

Constructs an unbound PySide.QtWebKit.QWebInspector with parent as its parent.

PySide.QtWebKit.QWebInspector. page ( )
返回类型: PySide.QtWebKit.QWebPage

Returns the inspected PySide.QtWebKit.QWebPage . If no web page is currently associated, a null pointer is returned.

PySide.QtWebKit.QWebInspector. setPage ( page )
参数: page PySide.QtWebKit.QWebPage

Bind this inspector to the PySide.QtWebKit.QWebPage to be inspected.

注意事项: