本文由Markdown语法编辑器编辑完成。
1. 问题提出:
2. 解决方案:
I encode a string using Blowfish algorithm and it saves the encoded string as an unsigned char *,and now I have to convert it to QString, i tried the following and it works fine:
//encodedPass is unsigned char *
QString tmp=QString::fromLocal8Bit((char*)encodedPass);
未完待续……
参考链接:
http://www.qtcentre.org/threads/17481-convert-unsigned-char-*-to-QString

本文介绍了一种使用Blowfish算法进行字符串编码的方法,并详细解释了如何将编码后的unsigned char*类型数据转换为QString的过程。
401

被折叠的 条评论
为什么被折叠?



