43 <h2>WebBrowserPage</h2> |
43 <h2>WebBrowserPage</h2> |
44 <p> |
44 <p> |
45 Class implementing an enhanced web page. |
45 Class implementing an enhanced web page. |
46 </p><h3>Signals</h3> |
46 </p><h3>Signals</h3> |
47 <dl> |
47 <dl> |
48 <dt>safeBrowsingAbort()</dt> |
48 <dt>navigationRequestAccepted(url, navigation type, main frame)</dt> |
|
49 <dd> |
|
50 emitted |
|
51 to signal an accepted navigation request |
|
52 </dd><dt>printRequested()</dt> |
|
53 <dd> |
|
54 emitted to indicate a print request of the shown |
|
55 web page |
|
56 </dd><dt>safeBrowsingAbort()</dt> |
49 <dd> |
57 <dd> |
50 emitted to indicate an abort due to a safe |
58 emitted to indicate an abort due to a safe |
51 browsing event |
59 browsing event |
52 </dd><dt>safeBrowsingBad(threatType, threatMessages)</dt> |
60 </dd><dt>safeBrowsingBad(threatType, threatMessages)</dt> |
53 <dd> |
61 <dd> |
84 <td>Private slot handling a feature permission request.</td> |
92 <td>Private slot handling a feature permission request.</td> |
85 </tr><tr> |
93 </tr><tr> |
86 <td><a href="#WebBrowserPage.__fullScreenRequested">__fullScreenRequested</a></td> |
94 <td><a href="#WebBrowserPage.__fullScreenRequested">__fullScreenRequested</a></td> |
87 <td>Private slot handling a full screen request.</td> |
95 <td>Private slot handling a full screen request.</td> |
88 </tr><tr> |
96 </tr><tr> |
89 <td><a href="#WebBrowserPage.__setupWebChannel">__setupWebChannel</a></td> |
97 <td><a href="#WebBrowserPage.__loadProgressSlot">__loadProgressSlot</a></td> |
|
98 <td>Private slot to implement a workaround for the loadFinished signal not working properly in Qt 5.10.0.</td> |
|
99 </tr><tr> |
|
100 <td><a href="#WebBrowserPage.__setupChannelTimeout">__setupChannelTimeout</a></td> |
|
101 <td>Private slot to initiate the setup of the web channel.</td> |
|
102 </tr><tr> |
|
103 <td><a href="#WebBrowserPage.__setupWebChannelForUrl">__setupWebChannelForUrl</a></td> |
90 <td>Private method to setup a web channel to our external object.</td> |
104 <td>Private method to setup a web channel to our external object.</td> |
91 </tr><tr> |
105 </tr><tr> |
92 <td><a href="#WebBrowserPage.__urlChanged">__urlChanged</a></td> |
106 <td><a href="#WebBrowserPage.__urlChanged">__urlChanged</a></td> |
93 <td>Private slot to handle changes of the URL.</td> |
107 <td>Private slot to handle changes of the URL.</td> |
94 </tr><tr> |
108 </tr><tr> |
137 <td><a href="#WebBrowserPage.scrollPosition">scrollPosition</a></td> |
151 <td><a href="#WebBrowserPage.scrollPosition">scrollPosition</a></td> |
138 <td>Public method to get the scroll position of the web page.</td> |
152 <td>Public method to get the scroll position of the web page.</td> |
139 </tr><tr> |
153 </tr><tr> |
140 <td><a href="#WebBrowserPage.scrollTo">scrollTo</a></td> |
154 <td><a href="#WebBrowserPage.scrollTo">scrollTo</a></td> |
141 <td>Public method to scroll to the given position.</td> |
155 <td>Public method to scroll to the given position.</td> |
142 </tr><tr> |
|
143 <td><a href="#WebBrowserPage.setJavaScriptEnabled">setJavaScriptEnabled</a></td> |
|
144 <td>Public method to enable JavaScript.</td> |
|
145 </tr> |
156 </tr> |
146 </table> |
157 </table> |
147 <h3>Static Methods</h3> |
158 <h3>Static Methods</h3> |
148 <table> |
159 <table> |
149 <tr><td>None</td></tr> |
160 <tr><td>None</td></tr> |
220 </p><dl> |
231 </p><dl> |
221 <dt><i>request</i> (QWebEngineFullScreenRequest)</dt> |
232 <dt><i>request</i> (QWebEngineFullScreenRequest)</dt> |
222 <dd> |
233 <dd> |
223 reference to the full screen request |
234 reference to the full screen request |
224 </dd> |
235 </dd> |
225 </dl><a NAME="WebBrowserPage.__setupWebChannel" ID="WebBrowserPage.__setupWebChannel"></a> |
236 </dl><a NAME="WebBrowserPage.__loadProgressSlot" ID="WebBrowserPage.__loadProgressSlot"></a> |
226 <h4>WebBrowserPage.__setupWebChannel</h4> |
237 <h4>WebBrowserPage.__loadProgressSlot</h4> |
227 <b>__setupWebChannel</b>(<i></i>) |
238 <b>__loadProgressSlot</b>(<i>progress</i>) |
|
239 <p> |
|
240 Private slot to implement a workaround for the loadFinished signal |
|
241 not working properly in Qt 5.10.0. |
|
242 </p><dl> |
|
243 <dt><i>progress</i> (int)</dt> |
|
244 <dd> |
|
245 load progress in percent |
|
246 </dd> |
|
247 </dl><a NAME="WebBrowserPage.__setupChannelTimeout" ID="WebBrowserPage.__setupChannelTimeout"></a> |
|
248 <h4>WebBrowserPage.__setupChannelTimeout</h4> |
|
249 <b>__setupChannelTimeout</b>(<i></i>) |
|
250 <p> |
|
251 Private slot to initiate the setup of the web channel. |
|
252 </p><a NAME="WebBrowserPage.__setupWebChannelForUrl" ID="WebBrowserPage.__setupWebChannelForUrl"></a> |
|
253 <h4>WebBrowserPage.__setupWebChannelForUrl</h4> |
|
254 <b>__setupWebChannelForUrl</b>(<i>url</i>) |
228 <p> |
255 <p> |
229 Private method to setup a web channel to our external object. |
256 Private method to setup a web channel to our external object. |
230 </p><a NAME="WebBrowserPage.__urlChanged" ID="WebBrowserPage.__urlChanged"></a> |
257 </p><dl> |
|
258 <dt><i>url</i> (QUrl)</dt> |
|
259 <dd> |
|
260 URL for which to setup the web channel |
|
261 </dd> |
|
262 </dl><a NAME="WebBrowserPage.__urlChanged" ID="WebBrowserPage.__urlChanged"></a> |
231 <h4>WebBrowserPage.__urlChanged</h4> |
263 <h4>WebBrowserPage.__urlChanged</h4> |
232 <b>__urlChanged</b>(<i>url</i>) |
264 <b>__urlChanged</b>(<i>url</i>) |
233 <p> |
265 <p> |
234 Private slot to handle changes of the URL. |
266 Private slot to handle changes of the URL. |
235 </p><dl> |
267 </p><dl> |
496 </p><dl> |
528 </p><dl> |
497 <dt><i>pos</i> (QPointF)</dt> |
529 <dt><i>pos</i> (QPointF)</dt> |
498 <dd> |
530 <dd> |
499 position to scroll to |
531 position to scroll to |
500 </dd> |
532 </dd> |
501 </dl><a NAME="WebBrowserPage.setJavaScriptEnabled" ID="WebBrowserPage.setJavaScriptEnabled"></a> |
|
502 <h4>WebBrowserPage.setJavaScriptEnabled</h4> |
|
503 <b>setJavaScriptEnabled</b>(<i>enable</i>) |
|
504 <p> |
|
505 Public method to enable JavaScript. |
|
506 </p><dl> |
|
507 <dt><i>enable</i> (bool)</dt> |
|
508 <dd> |
|
509 flag indicating the enabled state to be set |
|
510 </dd> |
|
511 </dl> |
533 </dl> |
512 <div align="right"><a href="#top">Up</a></div> |
534 <div align="right"><a href="#top">Up</a></div> |
513 <hr /> |
535 <hr /> |
514 </body></html> |
536 </body></html> |