Qstrings to Strings

D

David Boddie

Hmmm, will that return a Unicode string? A byte string would be rather
inappropriate in most cases. I guess the unicode() function is the right
thing to use here (or the str() function in Py3 - no idea if that's
supported by Qt by now).

PyQt4.5 supports Python 3, so I imagine that str() will be what you would
use with that combination. For Python 2, unicode() is probably what most
people want.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,642
Latest member
arunkumar99

Latest Threads

Top