The QWebInspector class allows the placement and control of a 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. More...
#include <QWebInspector>
Inherits: QWidget.
This class was introduced in qtwebkit 4.6.
QWebInspector ( QWidget * parent = 0 ) | |
~QWebInspector () | |
QWebPage * | page () const |
void | setPage ( QWebPage * page ) |
virtual bool | event ( QEvent * ev ) |
virtual QSize | sizeHint () const |
virtual void | closeEvent ( QCloseEvent * event ) |
virtual void | hideEvent ( QHideEvent * event ) |
virtual void | resizeEvent ( QResizeEvent * event ) |
virtual void | showEvent ( QShowEvent * event ) |
The QWebInspector class allows the placement and control of a 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.
The QWebPage to be inspected must be specified using the setPage() method.
A typical use of QWebInspector follows:
// ... QWebPage *page = new QWebPage; // ... QWebInspector *inspector = new QWebInspector; inspector->setPage(page);
A QWebInspector can be made visible either programmatically using setVisible(), or by the user through the attached QWebPage's context menu.
Note: A 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 QWebPage and are allocated the first time that:
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 QSettings's default constructor documentation for an explanation of why this is necessary.
Constructs an unbound QWebInspector with parent as its parent.
Destroys the inspector.
Reimplemented from QWidget::closeEvent().
Reimplemented from QObject::event().
Reimplemented from QWidget::hideEvent().
Returns the inspected QWebPage. If no web page is currently associated, a null pointer is returned.
See also setPage().
Reimplemented from QWidget::resizeEvent().
Bind this inspector to the QWebPage to be inspected.
Notes:
See also page().
Reimplemented from QWidget::showEvent().
Reimplemented from QWidget::sizeHint().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.