当前位置:网站首页 > R语言数据分析 > 正文

qpainter 绘制图片(qpainter绘制文字)



印象中只有UI线程能绘制,如果怀疑是字符集的原因,你把这些字符集换成 英文字符试试,英文字符的话不同字符集下都能正常显示。
如果怀疑是编译器的原因,你 可以换到其他环境的编译器来编译,排除一下猜想。

Font rendering on background threads can be a little flaky in Qt, depending on how it was compiled. Check the value of QFontDatabase::supportsThreadedFontRendering on your system.

Note the documentation:
Returns true if font rendering is supported outside the GUI thread, false otherwise. In other words, a return value of false means that all QPainter::drawText() calls outside the GUI thread will not produce readable output.
然后我分别在Windows和Linux下调试了下返回值。一个返回true一个返回false,感觉麻烦大了。










到此这篇qpainter 绘制图片(qpainter绘制文字)的文章就介绍到这了,更多相关内容请继续浏览下面的相关 推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • word打开目录导航(word2016目录导航)2025-12-01 09:36:06
  • crn是什么简称(cr简称是什么意思)2025-12-01 09:36:06
  • spring 入门(spring 入门案例)2025-12-01 09:36:06
  • Tornadoes听力原文(can a video lead to murder听力原文)2025-12-01 09:36:06
  • nrm安装失败(npm 安装失败)2025-12-01 09:36:06
  • qpainter绘制文字(qpainter绘制文字重影)2025-12-01 09:36:06
  • hprof(Hprof 堆栈)2025-12-01 09:36:06
  • codependent no more 下载(codeorange)2025-12-01 09:36:06
  • ifstream和ofstream的用法(ofstream ifstream fstream)2025-12-01 09:36:06
  • bytebufferwrap会复制数组吗(bytebuffer.flip)2025-12-01 09:36:06
  • 全屏图片