【发布时间】:2014-05-08 17:01:37
【问题描述】:
我有一个 QString,我在其中附加来自用户的数据输入。
在 QString 的末尾,我需要附加一个“普通”QString 的十六进制表示。
例如:
QString Test("ff00112233440a0a");
QString Input("Words");
Test.append(Input);//but here is where Input needs to be the Hex representation of "Words"
//The resulting variable should be
//Test == "ff00112233440a0a576f726473";
如何从 ASCII(我认为)转换为十六进制表示?
感谢您的宝贵时间。
【问题讨论】: