On 03.09.2010 01:26, ext Evren Esat Özkan wrote:
Hi,
I'm trying to convert a simple QtWebKit based PyQt4 app to PySide. It's
all working except I can't post back a string value from javascript to
QtCore.Slot. It was working properly on PyQt4 with
"@QtCore.Slot(QtCore.QString)" decorator but with PySide, I can't find a
working counterpart for "QtCore.QString". It's workig for "int" data type
and parameterless calls, but while I've tried str, unicode and a few less
logical possiblites, none of them worked for passing strings.
In addition to Hugo's testcase proposal, you could try how it works on
PyQt if you enable the API 2 for QStrings by inserting these before the
PyQt import line:
import sip
sip.setapi('QString', 2)
If it works there but not on PySide, it's almost definitely a bug.
Cheers,
ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside