1     QImage image(m_Pixmap.width(), m_Pixmap.height(), QImage::Format_RGB888);
2     QPainter painter(&image);
3     m_pGraphicsScene->render(&painter);   //关键函数
4     image.save("D:\\SaveGraphicsScene.bmp");

 

相关文章:

  • 2021-06-20
  • 2021-08-02
  • 2021-09-05
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-01-01
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案