Qt Code:
  1. void theGui::setImageLabel(QLabel* _label, IplImage* image){
  2. _label->setPixmap(QPixmap::fromImage(Ipl2QImage(image)).scaled(_label->size(),Qt::KeepAspectRatio));
  3. }
To copy to clipboard, switch view to plain text mode 
This one works fine..

Qt Code:
  1. void theGui::setImageLabel(QLabel* _label, QString image){
  2. _label->setPixmap(QPixmap(image).scaled(_label->size(),Qt::KeepAspectRatio));
  3. }
To copy to clipboard, switch view to plain text mode 
This one doesnt work.. no image displayed


Can you please tell me why above one doesnt work, I tried various things like QPixmap::fromImage(QImage(image)) , but still doesnt work...

Thank you very much

Arpit