qt的QByteArray怎么转成十六进制数
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQoAAAB/CAYAAAAXU4wPAAAMTUlEQVR4nO3d25GrOrcF4OFTfzSIlx3CzsETh4MIx1LHsp8QcXQGOg/cBAaEG3zD46taVWst2YBoe4Lk1vDp9/fXA8C///6L//77D0REY//36gMgovfHQkFEUSwURBTFQkFEUSwURBTFQkFEUSwURBS1olA4FFmK0+mE0ylFVrhBq81OTVv9J80s3MyWHsehSE84Zfbpe17HIgvPUbH+DA3Ob1q84NwSrSgUNkuhkaP0Hr7MoWx680IX4+G9h/clBBkud7wRAACuQLrlTeB+YBOBWIt3LRVQuj6H3qPMVdCwXIj7c2sgzz1iok6kUFhYKzBGoABACfKrBuzPzJta4awUnKt2P9Al7sciEQMRC/u2lWLaoBD7K5RN8bY3RvS1lguFtbBKIQn/TyVInMXPZKVw+LGASHPtcwXSUza6yltk7f+5AunphFOq4Zyu/35zi+1guyvuCac0gx3su96nSur9VuNK0d6tOIssndh+tN0GV/yJ5y71L8rCWgWdN4UYCnkusDtXO1dkwbnNcO8NH9Euk5n9ODqFTXLk7T2yypGPrvKuKFDpvL6NVs2V1Mjg1tyXOVS37QusXJvb7/q2vbiEb9YfWAjOCoAIkqnhh9O4XCrI9Xb70faqArr9lzCJ7YdWsf6tkiBRgC2aYUeioKpqt7kIV6RIrUJeNn27CmaqPNGsXQpFP472uIodzDdIrlEV7b+bO46zmt/YgIW1wzuKNNNwzqEd3LgfG9yNZLCYGn4I8jKHzO52oV3OOOMHWZoiPaXIrBsMrbb1r+VQWQe7+5CtPh59DfqmBHl+7/HRt1suFCKQ4E0JoBmONFfwCUoEEg5NVI480SgsmknHHPe9TgXG94VoOLHXvBHKvq3Uasdbd4ciTXGxgFyvuLZ3P6HN/atQueaKbwSoHFySYJ+3cgXHmwfaQeSOQiBikbUfeTqLorBQcp59ITtrYZvb6W4rzdyBLSwSmbgpTxSUc6huXtTN/kdzBt0chfuBdcN9qbPseOtewTmFRHK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
如果不能,那就自己写个函数实现不是很容易吗 你试试这么操作
QByteArray byteArray;
byteArray.append('c');
byteArray.append('4');
QString hexString = byteArray.toHex();
qDebug() << hexString; // 输出 "c4"
页:
[1]