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();
Qt QLable 显示图像
最新推荐文章于 2024-07-18 12:06:55 发布