[Qt-interest] QString from char array
Donal
donaloconnor at gmail.com
Wed Jan 21 23:11:27 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.
On Wed, Jan 21, 2009 at 10:09 PM, RZ <rz at razfazz.at> wrote:
>
> > Have you a null terminating character at the end '\0' at the end of the
> > array?
>
> No - should I ?!?!
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090121/bfad6012/attachment.html
More information about the Qt-interest-old
mailing list