How to call javascript function from PyQT

前端 未结 2 1170
臣服心动
臣服心动 2021-01-02 16:22

I\'m trying to interact with a google map using python. I\'ve built an application in PyQT with a QWebView. The QWebView loads a local html page as shown here:

<         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-02 17:21

    http://pysnippet.blogspot.com/2010/01/more-fun-with-qwebkit.html might help.

    The only difference I can see between the two things you tried is that alert() is part of the standard functions. Maybe you need a document.addmarker() instead of just addmarker() ?

提交回复
热议问题