Hello friends,

I am getting an image into a databuffer and after I want to display it on screen. I did something like that:

Here I put the image into databuffer...
code:

Qt Code:
  1. for(i=1; i<=packNum ;i++) {
  2. Get_Image_Data(dataBuffer,512,&rec);//I read 512 bytes size per package from the port..
  3. arr.append(dataBuffer);
  4. }
To copy to clipboard, switch view to plain text mode 



Here I display the image on screen...
code:

Qt Code:
  1. QPixmap image = new QPixmap();
  2. image->loadFromData(arr.data());
  3. label->setPixmap(*image);
To copy to clipboard, switch view to plain text mode 


I see in the log that as data comes continuously(like video ), size of the "arr" changes. I mean , something really fills "arr"... But nothing is displayed on the screen... Any idea ..? Thanks....