
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQWebInspector class allows the placement and control of aQWebPage'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...
| Header: | #include <QWebInspector> |
| Since: | Qt 4.6 |
| Inherits: | QWidget |
| QWebInspector(QWidget * parent = 0) | |
| ~QWebInspector() | |
| QWebPage * | page() const |
| void | setPage(QWebPage * page) |
| virtual void | closeEvent(QCloseEvent * event) |
| virtual void | hideEvent(QHideEvent * event) |
| virtual void | resizeEvent(QResizeEvent * event) |
| virtual void | showEvent(QShowEvent * event) |
TheQWebInspector class allows the placement and control of aQWebPage'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.
TheQWebPage to be inspected must be specified using thesetPage() method.
A typical use ofQWebInspector follows:
// ...QWebPage*page=newQWebPage;// ...QWebInspector*inspector=newQWebInspector; inspector->setPage(page);
AQWebInspector can be made visible either programmatically usingsetVisible(), or by the user through the attachedQWebPage's context menu.
Note:AQWebInspector 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 associatedQWebPage 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 byQtWebKit only if your application previously calledQCoreApplication::setOrganizationName() andQCoreApplication::setApplicationName(). SeeQSettings's default constructor documentation for an explanation of why this is necessary.
Constructs an unboundQWebInspector withparent as its parent.
Destroys the inspector.
[virtual protected]void QWebInspector::closeEvent(QCloseEvent * event)Reimplemented fromQWidget::closeEvent().
[virtual]bool QWebInspector::event(QEvent * ev)Reimplemented fromQObject::event().
[virtual protected]void QWebInspector::hideEvent(QHideEvent * event)Reimplemented fromQWidget::hideEvent().
Returns the inspectedQWebPage. If no web page is currently associated, a null pointer is returned.
See alsosetPage().
[virtual protected]void QWebInspector::resizeEvent(QResizeEvent * event)Reimplemented fromQWidget::resizeEvent().
Bind this inspector to theQWebPage to be inspected.
Notes:
See alsopage().
[virtual protected]void QWebInspector::showEvent(QShowEvent * event)Reimplemented fromQWidget::showEvent().
[virtual]QSize QWebInspector::sizeHint() constReimplemented fromQWidget::sizeHint().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.