社区
C++ Builder
帖子详情
QWidget::repaint: Recursive repaint detected
Just__Do__IT___
2017-03-29 12:35:40
我在paintEvent函数里面调用了
QMessageBox::StandardButton btnValue = QMessageBox::information(this, "congratulations", str + "win!");
为什么会报 QWidget::repaint: Recursive repaint detected 错误呢?
...全文
1800
回复
打赏
收藏
QWidget::repaint: Recursive repaint detected
我在paintEvent函数里面调用了 QMessageBox::StandardButton btnValue = QMessageBox::information(this, "congratulations", str + "win!"); 为什么会报 QWidget::repaint: Recursive repaint detected 错误呢?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Qt线程爬坑1- QBackingStore::endPaint() call
ed
with active painter 和
QWidget
::
repaint
: Re
cursive
repain
在使用Qt多线程和信号槽时,报错:QBackingStore::endPaint() call
ed
with active painter 和
QWidget
::
repaint
: Re
cursive
repaint
detect
ed
when updating progress bar
Qt子线程刷新主线程界面
问题: 之前做了一个界面,16个线程会刷新主界面的控件,莫名其妙的就崩溃了,还是偶发性,也不知道啥原因,看Qt报的错误信息是“
QWidget
::
repaint
: Re
cursive
repaint
detect
ed
” 查找原因: 看了两个Stack Overflow的问答, https://stackoverflow.com/questions/31180660/
qwidget
repaint
-re
cursive
-
repaint
-
detect
ed
https://stackoverflow.com/q.
QWidget
::paintEngine: Should no longer be call
ed
错误解决办法
再做项目时,再QPlainText
Ed
it中画个边框,然后用到paintEvent,结果报错 开始写成:QPainter painter(this); 报错 改成这样:QPainter painter(this->viewport()); 不报错,而且还能画出来 ...
Qt 问题记录
在paintEvent中使用painter绘制了线段、图片,移动了
QWidget
,加入了下面代码导致的。屏蔽后没有出现该warning。运行出现的warning。
QT多线程引起的问题QBackingStore::endPaint() call
ed
with active painter; did you forget to destroy it or call
不要在主线程以外的任何子线程对GUI界面相关的小组件等进行建立/调用/操作等,通过信号槽在主线程的槽函数进行操作。
C++ Builder
13,873
社区成员
102,696
社区内容
发帖
与我相关
我的任务
C++ Builder
C++ Builder相关内容讨论区
复制链接
扫一扫
分享
社区描述
C++ Builder相关内容讨论区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章