[Qt-interest] QByteArray bug?

Andreas Pakulat apaku at gmx.de
Fri Jul 10 21:15:02 CEST 2009


On 10.07.09 20:51:16, Frank Hemer wrote:
> 
> I have a Method:
> 
> MyArray::getData (int len) {
>    QByteArray arr;
>    arr.resize (len);
>    arr.data ();
>    return arr;
> }
> 
> >>From another place, this is called:
> 
> MyArray myArray;
> QByteArray arr = myArray.getData (x);
> qDebug ("arr size: %i", arr.size ());
> 
> This works for all values of x
> BUT NOT FOR 0??

This works just fine here, I always get 0 when passing in 0. Can you
post a complete compilable example that reproduces this?

Andreas

-- 
Good day for a change of scene.  Repaper the bedroom wall.



More information about the Qt-interest-old mailing list