I have done the changes and now am sending the image via signal,but still I am unable to refresh the image.
Here is what I have done:
Qt Code:
  1. class GrabThread : public QThread
  2. {
  3. Q_OBJECT
  4. private:
  5. void run();
  6. public:
  7. signals:
  8. void ImageRefreshSignal(const QImage &image);
  9. };
To copy to clipboard, switch view to plain text mode 
Signal emmited like:
Qt Code:
  1. QImage img;
  2. img.load("abc.bmp");
  3. emit ImageRefreshSignal(img);
To copy to clipboard, switch view to plain text mode 
slot method called like:
Qt Code:
  1. void Dialog_user::ImageRefreshSlot(QImage img )
  2. {
  3. qDebug()<<"inside slot";
  4. ui->label->setPixmap(QPixmap::fromImage(img));
  5. }
To copy to clipboard, switch view to plain text mode 
//dialog_user.h
Qt Code:
  1. class Dialog_user : public QDialog
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. explicit Dialog_user(QWidget *parent = 0);
  7. ~Dialog_user();
  8.  
  9. private slots:
  10. void ImageRefreshSlot (QImage img);
To copy to clipboard, switch view to plain text mode 
the connection is as follows:
Qt Code:
  1. QObject::connect( & gthread, SIGNAL( ImageRefreshSignal(QImage) ),& d_user, SLOT( ImageRefreshSlot(QImage) ) );
To copy to clipboard, switch view to plain text mode 
I have checked the mechanism, and the message "inside slot" is being printed,but the image is not getting refreshed.