Calling Python from JavaScript in PyQt’s QWebkit

source:http://pysnippet.blogspot.com/2010/01/calling-python-from-javascript-in-pyqts.html

QtWebKit makes it very easy to expose methods and properties implemented in Python to JavaScript. Qt will automatically expose Qt-slots and Qt-properties to a JavaScript when a QObject is made available in the frame’s JavaScript context.

I think the code speaks for itself

Some references:

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注