54 <tr> |
54 <tr> |
55 <td><a href="#getFileNameFromUrl">getFileNameFromUrl</a></td> |
55 <td><a href="#getFileNameFromUrl">getFileNameFromUrl</a></td> |
56 <td>Module function to generate a file name based on the given URL.</td> |
56 <td>Module function to generate a file name based on the given URL.</td> |
57 </tr> |
57 </tr> |
58 <tr> |
58 <tr> |
|
59 <td><a href="#getHtmlPage">getHtmlPage</a></td> |
|
60 <td>Module function to load a HTML page.</td> |
|
61 </tr> |
|
62 <tr> |
|
63 <td><a href="#getJavascript">getJavascript</a></td> |
|
64 <td>Module function to load a JavaScript source file.</td> |
|
65 </tr> |
|
66 <tr> |
59 <td><a href="#getWebEngineVersions">getWebEngineVersions</a></td> |
67 <td><a href="#getWebEngineVersions">getWebEngineVersions</a></td> |
60 <td>Module function to extract the web engine version from the default user agent string.</td> |
68 <td>Module function to extract the web engine version from the default user agent string.</td> |
|
69 </tr> |
|
70 <tr> |
|
71 <td><a href="#pixmapFileToDataUrl">pixmapFileToDataUrl</a></td> |
|
72 <td>Module function to load a pixmap file and convert the pixmap to a data: URL.</td> |
61 </tr> |
73 </tr> |
62 <tr> |
74 <tr> |
63 <td><a href="#pixmapFromByteArray">pixmapFromByteArray</a></td> |
75 <td><a href="#pixmapFromByteArray">pixmapFromByteArray</a></td> |
64 <td>Module function to convert a byte array to a pixmap.</td> |
76 <td>Module function to convert a byte array to a pixmap.</td> |
65 </tr> |
77 </tr> |
183 </dd> |
195 </dd> |
184 </dl> |
196 </dl> |
185 <div align="right"><a href="#top">Up</a></div> |
197 <div align="right"><a href="#top">Up</a></div> |
186 <hr /> |
198 <hr /> |
187 <hr /> |
199 <hr /> |
|
200 <a NAME="getHtmlPage" ID="getHtmlPage"></a> |
|
201 <h2>getHtmlPage</h2> |
|
202 <b>getHtmlPage</b>(<i>pageFileName</i>) |
|
203 |
|
204 <p> |
|
205 Module function to load a HTML page. |
|
206 </p> |
|
207 <p> |
|
208 Note: If the given HTML file path is not absolute, it is assumed to |
|
209 denote a HTML file in the html data directory. |
|
210 </p> |
|
211 <dl> |
|
212 |
|
213 <dt><i>pageFileName</i> (str)</dt> |
|
214 <dd> |
|
215 file name of the HTML file |
|
216 </dd> |
|
217 </dl> |
|
218 <dl> |
|
219 <dt>Returns:</dt> |
|
220 <dd> |
|
221 HTML page |
|
222 </dd> |
|
223 </dl> |
|
224 <dl> |
|
225 <dt>Return Type:</dt> |
|
226 <dd> |
|
227 str |
|
228 </dd> |
|
229 </dl> |
|
230 <div align="right"><a href="#top">Up</a></div> |
|
231 <hr /> |
|
232 <hr /> |
|
233 <a NAME="getJavascript" ID="getJavascript"></a> |
|
234 <h2>getJavascript</h2> |
|
235 <b>getJavascript</b>(<i>jsFileName</i>) |
|
236 |
|
237 <p> |
|
238 Module function to load a JavaScript source file. |
|
239 </p> |
|
240 <p> |
|
241 Note: If the given JavaScript source file path is not absolute, it is |
|
242 assumed to denote a JavaScript source file in the javascript data |
|
243 directory. |
|
244 </p> |
|
245 <dl> |
|
246 |
|
247 <dt><i>jsFileName</i> (str)</dt> |
|
248 <dd> |
|
249 file name of the JavaScript source file |
|
250 </dd> |
|
251 </dl> |
|
252 <dl> |
|
253 <dt>Returns:</dt> |
|
254 <dd> |
|
255 JavaScript source |
|
256 </dd> |
|
257 </dl> |
|
258 <dl> |
|
259 <dt>Return Type:</dt> |
|
260 <dd> |
|
261 str |
|
262 </dd> |
|
263 </dl> |
|
264 <div align="right"><a href="#top">Up</a></div> |
|
265 <hr /> |
|
266 <hr /> |
188 <a NAME="getWebEngineVersions" ID="getWebEngineVersions"></a> |
267 <a NAME="getWebEngineVersions" ID="getWebEngineVersions"></a> |
189 <h2>getWebEngineVersions</h2> |
268 <h2>getWebEngineVersions</h2> |
190 <b>getWebEngineVersions</b>(<i></i>) |
269 <b>getWebEngineVersions</b>(<i></i>) |
191 |
270 |
192 <p> |
271 <p> |
206 </dd> |
285 </dd> |
207 </dl> |
286 </dl> |
208 <div align="right"><a href="#top">Up</a></div> |
287 <div align="right"><a href="#top">Up</a></div> |
209 <hr /> |
288 <hr /> |
210 <hr /> |
289 <hr /> |
|
290 <a NAME="pixmapFileToDataUrl" ID="pixmapFileToDataUrl"></a> |
|
291 <h2>pixmapFileToDataUrl</h2> |
|
292 <b>pixmapFileToDataUrl</b>(<i>pixmapFile, asString=False</i>) |
|
293 |
|
294 <p> |
|
295 Module function to load a pixmap file and convert the pixmap to a |
|
296 data: URL. |
|
297 </p> |
|
298 <p> |
|
299 Note: If the given pixmap file path is not absolute, it is assumed to |
|
300 denote a pixmap file in the icons data directory. |
|
301 </p> |
|
302 <dl> |
|
303 |
|
304 <dt><i>pixmapFile</i> (str)</dt> |
|
305 <dd> |
|
306 file name of the pixmap file |
|
307 </dd> |
|
308 <dt><i>asString</i> (bool)</dt> |
|
309 <dd> |
|
310 flag indicating a string representation is requested |
|
311 </dd> |
|
312 </dl> |
|
313 <dl> |
|
314 <dt>Returns:</dt> |
|
315 <dd> |
|
316 data: URL |
|
317 </dd> |
|
318 </dl> |
|
319 <dl> |
|
320 <dt>Return Type:</dt> |
|
321 <dd> |
|
322 QUrl or str |
|
323 </dd> |
|
324 </dl> |
|
325 <div align="right"><a href="#top">Up</a></div> |
|
326 <hr /> |
|
327 <hr /> |
211 <a NAME="pixmapFromByteArray" ID="pixmapFromByteArray"></a> |
328 <a NAME="pixmapFromByteArray" ID="pixmapFromByteArray"></a> |
212 <h2>pixmapFromByteArray</h2> |
329 <h2>pixmapFromByteArray</h2> |
213 <b>pixmapFromByteArray</b>(<i>data</i>) |
330 <b>pixmapFromByteArray</b>(<i>data</i>) |
214 |
331 |
215 <p> |
332 <p> |
267 <div align="right"><a href="#top">Up</a></div> |
384 <div align="right"><a href="#top">Up</a></div> |
268 <hr /> |
385 <hr /> |
269 <hr /> |
386 <hr /> |
270 <a NAME="pixmapToDataUrl" ID="pixmapToDataUrl"></a> |
387 <a NAME="pixmapToDataUrl" ID="pixmapToDataUrl"></a> |
271 <h2>pixmapToDataUrl</h2> |
388 <h2>pixmapToDataUrl</h2> |
272 <b>pixmapToDataUrl</b>(<i>pixmap</i>) |
389 <b>pixmapToDataUrl</b>(<i>pixmap, mimetype="image/png"</i>) |
273 |
390 |
274 <p> |
391 <p> |
275 Module function to convert a pixmap to a data: URL. |
392 Module function to convert a pixmap to a data: URL. |
276 </p> |
393 </p> |
277 <dl> |
394 <dl> |