[Qt-interest] QString::toStdString() problem

Thiago Macieira thiago at kde.org
Fri Feb 26 09:45:12 CET 2010


Em Sexta-feira 26 Fevereiro 2010, às 09:09:35, hakiim the dream escreveu:
> Hello, i have a QString variable which is set with a string like
> "C:\\folder\\xyz.jpg" , but string s = myQstring.toStdString(); produces a
> completely different output than the original string.The output is
> something like
> "¶È…Éu‹Uü‹Pè©ıÿƒÄ‹å]ÃÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌU‹ìQ‰Mü‹EP‹Müè¥ıÿ‹Eü‹å]Â
> " What do you think about the problem?

We can't tell from the information you posted.

Please include some sample code, that shows how the error happens.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100226/1640ee80/attachment.bin 


More information about the Qt-interest-old mailing list