赞
踩
QImage Image = QImage((uchar*)(Srcmat.data), Srcmat.cols, Srcmat.rows, Srcmat.step, QImage::Format_RGB888);
QImage scaledImage = Image.scaled(this->ui.m_SLabel->width(), this->ui.m_Label->height(), Qt::IgnoreAspectRatio);
this->ui.m_Label->setPixmap(QPixmap::fromImage(scaledImage));
this->ui.m_Label->show();
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。