Ok, looks like it's a bug.
Here is the test app with optional pyqt/api2 imports: http://dpaste.org/DzAZ/

On Fri, 03 Sep 2010 11:25:37 +0300, Matti Airas <[email protected]> wrote:

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


--

Evren Esat Özkan :: Yazılım Geliştirme Yönetmeni :: [email protected]


TAFT Telekom Ltd. Şti.   ::   232 4644486/7   ::   taft.com.tr
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to