Re: Qt String Question

2004-12-13 Thread Detlev Offenbach
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 Q

Re: Qt String Question

2004-12-13 Thread Pierre Barbier de Reuille
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

Re: Qt String Question

2004-12-13 Thread Phil Thompson
> 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 -- http://mail.python.org/mailman/listinfo/python-list

Re: Qt String Question

2004-12-12 Thread Michael McGarry
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. -- http://mail.python.org/mailman/listinfo/python-list

Qt String Question

2004-12-12 Thread Michael McGarry
Hi, How do I convert from a qt.QString to a Python string? Michael -- http://mail.python.org/mailman/listinfo/python-list