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

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

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



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


目录
相关文章
HALCON error #1302: Wrong value of control parameter: 2 in operator affine_trans_region
HALCON error #1302: Wrong value of control parameter: 2 in operator affine_trans_region
|
5月前
|
API
28 QT - QPainter
28 QT - QPainter
20 0
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
70 0
|
算法 C# 索引
算法题丨Move Zeroes
描述 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
1132 0
|
容器 安全 物联网
Speed Matters: How To Process Big Data Securely For Real-time Applications
Big Data processing has stepped up to provide organizations with new tools and technologies to improve business efficiency and competitive advantage.
1260 0
Speed Matters: How To Process Big Data Securely For Real-time Applications
|
网络协议 安全
|
监控 安全 网络安全
|
监控 安全 网络安全