void theGui
::setImageLabel(QLabel* _label, IplImage
* image
){ _label
->setPixmap
(QPixmap::fromImage(Ipl2QImage
(image
)).
scaled(_label
->size
(),Qt
::KeepAspectRatio));
}
void theGui::setImageLabel(QLabel* _label, IplImage* image){
_label->setPixmap(QPixmap::fromImage(Ipl2QImage(image)).scaled(_label->size(),Qt::KeepAspectRatio));
}
To copy to clipboard, switch view to plain text mode
This one works fine..
_label
->setPixmap
(QPixmap(image
).
scaled(_label
->size
(),Qt
::KeepAspectRatio));
}
void theGui::setImageLabel(QLabel* _label, QString image){
_label->setPixmap(QPixmap(image).scaled(_label->size(),Qt::KeepAspectRatio));
}
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
Bookmarks