用QImage载入图片后用QPainter进行处理时有些图片会莫名其妙出现如下问题:

QPainter::begin: Paint device returned engine == 0, type: 3

QPainter::setRenderHint: Painter must be active to set rendering hints

QPainter::setPen: Painter not active

解决QT用QPainter::drawText出现Paint device returned engine == 0, type: 3 等错误

后来我尝试用新的QT库,问题得到解决。QT4.7.4可能对图片格式的支持不是很全面,用4.8.5的库就没有问题了。

相关文章:

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