File: webkit.rst

package info (click to toggle)
python-qt4 4.12.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 40,300 kB
  • ctags: 6,185
  • sloc: python: 125,988; cpp: 13,291; xml: 292; makefile: 246; php: 27; sh: 2
file content (9 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
Integrating Python and JavaScript in QtWebKit
=============================================

QtWebKit uses slots to expose class methods implemented in C++ as JavaScript
methods that can be called from scripts embedded in HTML.  Python class
methods that have been decorated behave in exactly the same way.

In the same way, properties created using :func:`~PyQt4.QtCore.pyqtProperty`
are also automatically exposed as JavaScript properties.