Hi Jun, PySide doesn't have QString, just Python strings, and sip is used only by PyQt4.
On 2 February 2012 10:29, Jun Koi <junkoi2...@gmail.com> 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 > PySide@lists.pyside.org > http://lists.pyside.org/listinfo/pyside -- Daniele Esposti My Blog http://www.expobrain.net LinkedIn http://www.linkedin.com/in/danieleesposti Twitter http://www.twitter.com/#!/expobrain _______________________________________________ PySide mailing list PySide@lists.pyside.org http://lists.pyside.org/listinfo/pyside