Jun,
PySide's api is compatible with PyQt4's api2. QString has caused many
problems in the PyQt4's api1, so the new api doesn't use
QString/QVariant/etc any more.
Under PyQt4 and Python2X, api2 can be enabled by sip.setapi("****", 2).
No such problem exists in PySide.
Debao
On Thu, Feb 2, 2012 at 2:29 AM, Jun Koi <[email protected]> wrote:
> hi,
>
> i am using the latest PySide 1.1.0, Qt 4.6.2 on Ubuntu. the simple
> code below complains:
>
> "AttributeError: 'module' object has no attribute 'QString'"
>
> how can i fix the problem?
>
> many thanks,
> Jun
>
> #####
> import sip
> sip.setapi('QString', 2)
>
> import sys
> from PySide import QtGui, QtCore
>
> QtCore.QString("aaa")
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.pyside.org/listinfo/pyside
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside