Important: Please read the Qt Code of Conduct -

[pyside, webkit] send msg betwen js and python

  • i found this topic in wiki:
    But I can not run the sample program from it.
    I use pyqt4 and get the following error
    $ ./
    Traceback (most recent call last):
    File "./", line 35, in <module>
    view.setSource(file.replace('.py', '.qml'))
    TypeError: QDeclarativeView.setSource(QUrl): argument 1 has unexpected type 'str'
    Anybody have souces code from this toturial?
    Maybe my problem is that I use pyqt4 instead of pyside?

Log in to reply