Qt String Question

Detlev Offenbach detlev at die-offenbachs.de
Mon Dec 13 13:58:31 EST 2004


Phil Thompson wrote:

>> Michael McGarry wrote:
>>> Hi,
>>>
>>> How do I convert from a qt.QString to a Python string?
>>>
>>> Michael
>> Apparently the ascii() method of QString does this. (I answered my own
>> question).
> 
> Or use the str() builtin.
> 
> Phil

unicode() is even better because QString might contain non-ASCII
characters.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de



More information about the Python-list mailing list