QPainter::end: Painter ended with saved states

原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: QPainter::end: Painter ended with saved states

Qt开发中如果cosole不断的打出如下信息:

QPainter::end: Painter ended with saved states

那么应该是代码里面QPainter中有一处没有配对出现save()、restore()方法造成,比如本人出现的问题:

检查代码发现其中有两处的确QPainter的save(), restore()方法没有匹配.

 

原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: QPainter::end: Painter ended with saved states

文章的脚注信息由WordPress的wp-posturl插件自动生成



|2|left
打赏

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: