Calling Python from JavaScript in PyQt’s QWebkit


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:


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