Hi All,

I m using Qt 4.2.2 on my MAC Intel.
Eariler I m using qt 3.3 in which I stored bytes in QBytes Array as-

unsigned long SizeToRead=ThumbnailSize+512;
unsigned long BytesToIgnore=TStart%512;
QByteArray qBuffer(SizeToRead-BytesToIgnore);


But when I m using this in Qt 4.2.2 it is giving the error that
Invalid Conversion from Long Unsigned Int to const char*.

Now I m using this.....

QByteArray qBuffer;
memset(&qBuffer,0x00,(SizeToRead-BytesToIgnore));


and also copy the bytes in qBuffer.

In Qt 3.3 I m using
QImage image(qBuffer) to construct image from the Bytes but when I m using this in QT 4.2.2 it is giving the following Error that..

Call of overloaded QImage(QByteArray&) is ambiguous.

Plz help me How I stored the bytes and construct the image from that.

thanks.