[Qt-interest] QString from char array
RZ
rz at razfazz.at
Wed Jan 21 23:20:31 CET 2009
> Well all strings have to be terminated with that so I'm guessing that is
> your problem.
> If receiving 4 characters, have array size 4 with array[4] = '\0' and
> then try converting to QString. I'm guessing this is the problem.
>
Thx, I'll try that.
(There's only one theoretical condition that might cause problems but
i'll guess don't exists in practice: the array always has a size of 1024
characters - if the string array would be exactly that length I can't
append or loose one char - ok i could copy the array first. But that's a
rare condition though)
More information about the Qt-interest-old
mailing list