This class was introduced in Qt 4.6
The 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.
A typical use of PySide.QtWebKit.QWebInspector follows:# ... page = QWebPage() # ... inspector = QWebInspector() inspector.setPage(page)
A PySide.QtWebKit.QWebInspector will display a blank widget if either:
- PySide.QtWebKit.QWebInspector.page() is null
- QWebSettings.DeveloperExtrasEnabled is false
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() . See PySide.QtCore.QSettings ‘s default constructor documentation for an explanation of why this is necessary.
|Parameters:||parent – PySide.QtGui.QWidget|
Constructs an unbound PySide.QtWebKit.QWebInspector with parent as its parent.
Returns the inspected PySide.QtWebKit.QWebPage . If no web page is currently associated, a null pointer is returned.
|Parameters:||page – PySide.QtWebKit.QWebPage|
Bind this inspector to the PySide.QtWebKit.QWebPage to be inspected.