回帖:20091001753:线程的限制,是指绘制界面的功能,必须在主线程。
QImage,是图片数据,你爱怎么修改,在什么线程修改,都无所谓。
但是将 QImage 的内容,绘制到 widget 上,只能在主线程。 (2019-09-16 20:45)
你这个说法比较靠谱。
我找到官方说法了。
Because QImage is a QPaintDevice subclass, QPainter can be used to draw directly onto p_w_picpath. When using QPainter on a QImage, the painting can be performed in another thread than the current GUI thread.
使用QImage时,可以在子线程中使用QPinter在其上做图。