1 QPixmap fitpixmap=image.scaled(ui->label->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
2 ui->label->setPixmap(fitpixmap);
3 ui->label->setAlignment(Qt::AlignCenter);
4 ui->label->show();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-06-21
  • 2022-02-21
  • 2021-12-16
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-12-04
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案