[Qt-interest] QString from char array
RZ
rz at razfazz.at
Wed Jan 21 23:02:06 CET 2009
Hi,
i'm banging my head against the wall cause the solution should be
simple. Over some network connection i receive an array of uint8 which i
want to convert into a QString.
So e.g. in the array there are the values for "test" (116 65 115 116)
but i can't get a string out of it. I tried
QString::fromAscii/Local8Bit/....((const char*)array) but I always get
garbage.
It can't be that complicated but i just can't find the right way.
Thx for any help,
RZ
More information about the Qt-interest-old
mailing list