Hi,
My program is designed to receive a gray scale image from external media. My media is sending a proper gray scale image byte by byte. But while receiving in my program Qt will convert it to 8 bit color. That is, i am using following function to receive it.
QImage image = QImage((uchar*)DataValues.data(), 300, 300, QImage::Format_Indexed8);

Here Datavalues is of type QByteArray.

Can any one please tell me how can i receive the gray image as grayed itself.???


Thank You