I have following problem in QT.
I have a unsigned char * buffer which contains image data and i want to display it, how can i do that? I populated this buffer from jpg image.
I have written some code
QImage image;
QPicture pic;
pic.setData((const char*)buffer, fileLen);
image_display->setPicture(pic);
when i run this it gives me following error
QPicturePaintEngine::checkFormat: Incorrect header
Any help will be highly appreciated.
thnx in advance.
waiting for ur early reply....