title: Update Qt GUI in Loop ( show Bitmap image as movie )
body: <p>i receive   screenshot   as  bitmap from socket  and  when i show  only one  of them it work 
  but when i put  in loop ( show  all receive   image to make  movie) i get hang </p>
  
  <pre><code>void ShowImageBuffer(char* buf,int sizeofimagebuffer )
  {
      QByteArray byte=QByteArray::fromRawData(buf, sizeofimagebuffer );
      QPixmap  image;
      if(image.loadFromData(byte,"BMP"))
      {
          ui-&gt;label-&gt;setPixmap(image);
          ui-&gt;label-&gt;update();
      }
  }
  
  
  
    while(1)
   {
          ShowImageBuffer(buf, sizeofimagebuffer)
   }
  </code></pre>
  
  <p>i must use  separate thread?( but  i think  we will not use  any thread to change GUI?)</p>
  
  <p>what is best to make  it real time?</p>