一杯清酒邀明月
天下本无事,庸人扰之而烦耳。

在使用Qt  QPainter 的时候,有时会遇到“QPainter::end: Painter ended whith 2 saced states”

这时由于我们在使用的QPanter.translate();函数,而在绘制结束的时候没有使用 restore()函数

出现QPainter::end: Painter ended whith 2 saced states 敬告,只需要在在绘制的结束的时候加上 restore() 函数就好了了

posted on 2020-08-11 16:22  一杯清酒邀明月  阅读(394)  评论(0编辑  收藏  举报