摘要: 缩放居中 QPixmap pix = QPixmap::fromImage(m_QImg); ui.label->setAlignment(Qt::AlignCenter); ui.label->setPixmap(pix.scaled(ui.label->size(), Qt::KeepAspec 阅读全文
posted @ 2023-12-22 16:35 夕西行 阅读(546) 评论(0) 推荐(0) 编辑