when set the qlabel pixmap, use the following:
10/12/09
QLabel
ui->label->setPixmap(QPixmap::fromImage(image));
QPixmap::fromImage is a static function.
The following codes do not seem to work:
QPixmap pixmap;
pixmap.fromImage(image);
ui->label->setPixmap(pixmap);
Labels:
Programming related
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment