File: qwebinspector.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (199 lines) | stat: -rw-r--r-- 14,532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qwebinspector.cpp -->
  <title>Qt 4.8: QWebInspector Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtwebkit.html">QtWebKit</a></li>
<li>QWebInspector</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#resources">Resources</a></li>
<li class="level2"><a href="#inspector-configuration-persistence">Inspector configuration persistence</a></li>
</ul>
</div>
<h1 class="title">QWebInspector Class Reference</h1>
<!-- $$$QWebInspector-brief -->
<p>The QWebInspector class allows the placement and control of a <a href="qwebpage.html">QWebPage</a>'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 href="#details">More...</a></p>
<!-- @@@QWebInspector -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QWebInspector&gt;</span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p>
<p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qwebinspector-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#QWebInspector">QWebInspector</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#dtor.QWebInspector">~QWebInspector</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWebPage * </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#page">page</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#setPage">setPage</a></b> ( QWebPage * <i>page</i> )</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#event">event</a></b> ( QEvent * <i>ev</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#closeEvent">closeEvent</a></b> ( QCloseEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#hideEvent">hideEvent</a></b> ( QHideEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qwebinspector.html#showEvent">showEvent</a></b> ( QShowEvent * <i>event</i> )</td></tr>
</table>
<ul>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QWebInspector-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QWebInspector class allows the placement and control of a <a href="qwebpage.html">QWebPage</a>'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.</p>
<p>The <a href="qwebpage.html">QWebPage</a> to be inspected must be specified using the <a href="qwebinspector.html#setPage">setPage</a>() method.</p>
<p>A typical use of QWebInspector follows:</p>
<pre class="cpp">     <span class="comment">// ...</span>
     <span class="type"><a href="qwebpage.html">QWebPage</a></span> <span class="operator">*</span>page <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qwebpage.html">QWebPage</a></span>;
     <span class="comment">// ...</span>

     <span class="type">QWebInspector</span> <span class="operator">*</span>inspector <span class="operator">=</span> <span class="keyword">new</span> <span class="type">QWebInspector</span>;
     inspector<span class="operator">-</span><span class="operator">&gt;</span>setPage(page);</pre>
<p>A QWebInspector can be made visible either programmatically using <a href="qwidget.html#visible-prop">setVisible</a>(), or by the user through the attached <a href="qwebpage.html">QWebPage</a>'s context menu.</p>
<p><b>Note:</b> A QWebInspector will display a blank widget if either:</p>
<ul>
<li><a href="qwebinspector.html#page">page</a>() is null</li>
<li><a href="qwebsettings.html#WebAttribute-enum">QWebSettings::DeveloperExtrasEnabled</a> is false</li>
</ul>
<a name="resources"></a>
<h3>Resources</h3>
<p>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 <a href="qwebpage.html">QWebPage</a> and are allocated the first time that:</p>
<ul>
<li>an element is inspected</li>
<li>the QWebInspector is shown.</li>
</ul>
<a name="inspector-configuration-persistence"></a>
<h3>Inspector configuration persistence</h3>
<p>The inspector allows the user to configure some options through its user interface (e.g&#x2e; the resource tracking &quot;Always enable&quot; option). These settings will be persisted automatically by <a href="qtwebkit.html">QtWebKit</a> only if your application previously called <a href="qcoreapplication.html#organizationName-prop">QCoreApplication::setOrganizationName</a>() and <a href="qcoreapplication.html#applicationName-prop">QCoreApplication::setApplicationName</a>(). See <a href="qsettings.html">QSettings</a>'s default constructor documentation for an explanation of why this is necessary.</p>
</div>
<!-- @@@QWebInspector -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QWebInspector[overload1]$$$QWebInspectorQWidget* -->
<h3 class="fn"><a name="QWebInspector"></a>QWebInspector::<span class="name">QWebInspector</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs an unbound <a href="qwebinspector.html">QWebInspector</a> with <i>parent</i> as its parent.</p>
<!-- @@@QWebInspector -->
<!-- $$$~QWebInspector[overload1]$$$~QWebInspector -->
<h3 class="fn"><a name="dtor.QWebInspector"></a>QWebInspector::<span class="name">~QWebInspector</span> ()</h3>
<p>Destroys the inspector.</p>
<!-- @@@~QWebInspector -->
<!-- $$$closeEvent[overload1]$$$closeEventQCloseEvent* -->
<h3 class="fn"><a name="closeEvent"></a><span class="type">void</span> QWebInspector::<span class="name">closeEvent</span> ( <span class="type"><a href="qcloseevent.html">QCloseEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#closeEvent">QWidget::closeEvent</a>().</p>
<!-- @@@closeEvent -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QWebInspector::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>ev</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$hideEvent[overload1]$$$hideEventQHideEvent* -->
<h3 class="fn"><a name="hideEvent"></a><span class="type">void</span> QWebInspector::<span class="name">hideEvent</span> ( <span class="type"><a href="qhideevent.html">QHideEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#hideEvent">QWidget::hideEvent</a>().</p>
<!-- @@@hideEvent -->
<!-- $$$page[overload1]$$$page -->
<h3 class="fn"><a name="page"></a><span class="type"><a href="qwebpage.html">QWebPage</a></span> * QWebInspector::<span class="name">page</span> () const</h3>
<p>Returns the inspected <a href="qwebpage.html">QWebPage</a>. If no web page is currently associated, a null pointer is returned.</p>
<p><b>See also </b><a href="qwebinspector.html#setPage">setPage</a>().</p>
<!-- @@@page -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QWebInspector::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$setPage[overload1]$$$setPageQWebPage* -->
<h3 class="fn"><a name="setPage"></a><span class="type">void</span> QWebInspector::<span class="name">setPage</span> ( <span class="type"><a href="qwebpage.html">QWebPage</a></span> * <i>page</i> )</h3>
<p>Bind this inspector to the <a href="qwebpage.html">QWebPage</a> to be inspected.</p>
<p><b>Notes:</b></p>
<ul>
<li>There can only be one <a href="qwebinspector.html">QWebInspector</a> associated with a <a href="qwebpage.html">QWebPage</a> and vice versa.</li>
<li>Calling this method with a null <i>page</i> will break the current association, if any.</li>
<li>If <i>page</i> is already associated to another <a href="qwebinspector.html">QWebInspector</a>, the association will be replaced and the previous <a href="qwebinspector.html">QWebInspector</a> will become unbound</li>
</ul>
<p><b>See also </b><a href="qwebinspector.html#page">page</a>().</p>
<!-- @@@setPage -->
<!-- $$$showEvent[overload1]$$$showEventQShowEvent* -->
<h3 class="fn"><a name="showEvent"></a><span class="type">void</span> QWebInspector::<span class="name">showEvent</span> ( <span class="type"><a href="qshowevent.html">QShowEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#showEvent">QWidget::showEvent</a>().</p>
<!-- @@@showEvent -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> QWebInspector::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      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. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>