注意
该类在 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:
| 参数: | parent – PySide.QtGui.QWidget |
|---|
Constructs an unbound PySide.QtWebKit.QWebInspector with parent as its parent.
| 返回类型: | PySide.QtWebKit.QWebPage |
|---|
Returns the inspected PySide.QtWebKit.QWebPage . If no web page is currently associated, a null pointer is returned.
| 参数: | page – PySide.QtWebKit.QWebPage |
|---|
Bind this inspector to the PySide.QtWebKit.QWebPage to be inspected.
注意事项: