Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QWebInspector Class

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

Public Functions

QWebInspector(QWidget * parent = 0)
~QWebInspector()
QWebPage *page() const
voidsetPage(QWebPage * page)

Reimplemented Public Functions

virtual boolevent(QEvent * ev)
virtual QSizesizeHint() const

Reimplemented Protected Functions

virtual voidcloseEvent(QCloseEvent * event)
virtual voidhideEvent(QHideEvent * event)
virtual voidresizeEvent(QResizeEvent * event)
virtual voidshowEvent(QShowEvent * event)
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice

Additional Inherited Members

  • 58 properties inherited fromQWidget
  • 1 property inherited fromQObject
  • 19 public slots inherited fromQWidget
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQWidget
  • 1 signal inherited fromQObject
  • 4 static public members inherited fromQWidget
  • 7 static public members inherited fromQObject
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice
  • 1 protected slot inherited fromQWidget

Detailed Description

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:

Resources

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:

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 byQtWebKit only if your application previously calledQCoreApplication::setOrganizationName() andQCoreApplication::setApplicationName(). SeeQSettings's default constructor documentation for an explanation of why this is necessary.

Member Function Documentation

QWebInspector::QWebInspector(QWidget * parent = 0)

Constructs an unboundQWebInspector withparent as its parent.

QWebInspector::~QWebInspector()

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().

QWebPage * QWebInspector::page() const

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().

void QWebInspector::setPage(QWebPage * page)

Bind this inspector to theQWebPage to be inspected.

Notes:

  • There can only be oneQWebInspector associated with aQWebPage and vice versa.
  • Calling this method with a nullpage will break the current association, if any.
  • Ifpage is already associated to anotherQWebInspector, the association will be replaced and the previousQWebInspector will become unbound

See alsopage().

[virtual protected]void QWebInspector::showEvent(QShowEvent * event)

Reimplemented fromQWidget::showEvent().

[virtual]QSize QWebInspector::sizeHint() const

Reimplemented 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.


[8]ページ先頭

©2009-2025 Movatter.jp