[PyQt] Convert string to QString
Jens Thoms Toerring
jt at toerring.de
Sun Sep 2 11:09:47 BST 2012
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 ________ jt at toerring.de
\_______________________________ http://toerring.de
More information about the PyQt
mailing list