QPainter p(this);
QPixmap pixmap;
pixmap.load("E:\\参考文件\\image\\1.jpg");

//QPixmap->QImage
QImage tempImage = pixmap.toImage();
p.drawImage(0,0,tempImage);

QImage image;
image.load("E:\\参考文件\\image\\1.jpg");

//QImage->QPixmap
QPixmap tempPixmap = QPixmap::fromImage(image);
p.drawPixmap(450,0,tempPixmap);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2021-10-10
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案