Qt String Question

Pierre Barbier de Reuille pierre.barbier at cirad.fr
Mon Dec 13 14:22:42 CET 2004


Michael McGarry 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).
> 
> sorry for wasting newsgroup space.

Depending on the kind of string you have, latin1() may be a better 
solution ...



More information about the Python-list mailing list