[Qt-interest] QString from char array

Donal donaloconnor at gmail.com
Wed Jan 21 23:44:33 CET 2009


If you have 4 charactors, then you you can read just the four with
fromAscii(charString, 4);
If you don't use len, it uses the null character instead, the way you were
using it and without a null terminator.

Correct me if i'm wrong however

On Wed, Jan 21, 2009 at 10:37 PM, RZ <rz at razfazz.at> wrote:

>
> > Way too obvious... you must of read the docs :)
> >
> Well that's one problem. The second - more important - i couldn't see a
> real relation from my problem to the second parameter. But I might have
> been wrong though ...
> _______________________________________________
> 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/f8eb29d4/attachment.html 


More information about the Qt-interest-old mailing list