Qt String Question

Pierre Barbier de Reuille pierre.barbier at cirad.fr
Mon Dec 13 08:22:42 EST 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