[Qt-interest] QByteArray bug?
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Fri Jul 10 21:41:01 CEST 2009
It only fails if its in a method - the way you tried it works fine.
I'll see if I can post sample code ...
Frank
---------
I tried the following and it worked fine
#include <QApplication>
#include <QByteArray>
#include <QDebug>
QByteArray getData (int len)
{
QByteArray arr;
arr.resize (len);
arr.data ();
return arr;
}
int main( int argc, char ** argv )
{
QByteArray arr = getData( 0 );
qDebug ("arr size: %i", arr.size ());
return 0;
}
Though it was not on 4.5, it was using 4.4.3
One thing.. is it possible, that you're my array class is going out of
scope?
Scott
More information about the Qt-interest-old
mailing list