On Sat, Sep 01, 2012 at 09:54:18PM -0700, Python.py wrote:
> I'm trying to convert a string to QString, but I can not. Does anyone know
> how I can do this converting?  

from PyQt4.QtCore import *
a = QString( "abc" )

or

from PyQt4 import Qt as qt
a = qt.QString( "abc" )

or...
                         Regards, Jens
-- 
  \   Jens Thoms Toerring  ________      j...@toerring.de
   \_______________________________      http://toerring.de
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to