您的位置:首页 > 编程语言 > Qt开发

Qt QPainter::end: Painter ended whith 2 saced states

2016-05-10 14:02 330 查看
在使用Qt QPainter 的时候,有时会遇到“QPainter::end: Painter ended whith 2 saced states”

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

出现QPainter::end: Painter ended whith 2 saced states 敬告,只需要在在绘制的结束的时候加上 restore() 函数就好了了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: