QImage image;
image.load(":/pics/earth.png");
QPixmap pixmap = QPixmap::fromImage(image.scaled(size(),Qt::KeepAspectRatio))
QT中Qpixmap与QImage的转化
最新推荐文章于 2023-10-21 11:23:22 发布
QImage image;
image.load(":/pics/earth.png");
QPixmap pixmap = QPixmap::fromImage(image.scaled(size(),Qt::KeepAspectRatio))