写qt碰到一个bug,求大神告诉我原因

记录下,顺便附象棋代码

QPainter::begin: A paint device can only be painted by one painter at a time.

QPainter::compositionMode: Painter not active

QPainter::setCompositionMode: Painter not active

QPainter::setCompositionMode: Painter not active

QPainter::begin: A paint device can only be painted by one painter at a time.

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QWidget::repaint: It is dangerous to leave painters active on a widget outside of the PaintEvent

QPainter::begin: A paint device can only be painted by one painter at a time.

QPainter::compositionMode: Painter not active

QPainter::setCompositionMode: Painter not active

QPainter::setCompositionMode: Painter not active

QPainter::begin: A paint device can only be painted by one painter at a time.

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

QPainter::setBrush: Painter not active

QPainter::setFont: Painter not active

QPainter::setPen: Painter not active

QPainter::setPen: Painter not active

Painter not active相关推荐

  1. QPainter::begin: Painter already active

    QT一直输出打印 QPainter::begin: Painter already active QPainter::begin: Painter already active QPainter::b ...

  2. QPainter::begin: Painter already active问题解决方案

    文章目录 1 问题重现 2 原因 3 解决方法 1 问题重现 2 原因 重新实现paintEvent函数时,如果使用QPainter painter(this);,再使用begin.end则会重复包含 ...

  3. QPainter::setPen: Painter not active问题解决

    经过我的测试,产生此中问题的有以下两个原因: 1.没有在QPainterEvent中绘图,而是在其他处.(如果想在其他处实现绘图操作,建议使用双缓冲机制进行绘制, 先把图形绘制到QPixmap中,然后 ...

  4. qt程序运行时绘图出现错误

    问题 QWidget::paintEngine: Should no longer be calledQPainter::begin: Paint device returned engine == ...

  5. qt5中重绘工具栏_Qt ------ QPainter 和控件组件的重绘

    使用 QPainter 修改 QPaintDevice 的子类,如果 QPaintDevice 的子类也是 QWidget 的子类,比如自定义QWidget子类.QLabel等,需要把 QPainte ...

  6. 20200511-01 基于 QCustomPlot 移植到 QML 上(qt.514)

    源码下载 一:要点说明 1. replot() 界面刷新(需要单独调用) replot() 这个函数的作用是用于刷新显示界面,根据文档显示,刷新的方式总共有 4 中: rpImmediateRefre ...

  7. Qt 画图工具擦除操作,恢复透明色

    在以transparent填充的QPixmap上用红色画笔画出了线,现需要擦除部分红色,恢复出原来的透明色. 使用QPainter::CompositionMode 图像叠加模式 下图简单示意了10种 ...

  8. Unable to paint on Qt Widget, shows error “paintEngine: Should no longer be called”

    今天在使用QPainter的时候QPainter不起作用,同时出现了如下错误: QWidget::paintEngine: Should no longer be called QPainter::b ...

  9. Qt中 QPainter 刷新出现的问题

    最近学习Qt 自定义绘画时碰到两个问题,问题如下: 自定义绘画图形,采用重写QPaintEvent,发现绘画不起作用: 1.Qpainter不刷新,解决方法:在触发刷新是,调用updata()函数强行 ...

最新文章

  1. 在mpvue中引用vant weapp
  2. PE学习(十)第十章: 加载配置信息表
  3. git checkout 对工作目录的影响 —— Git 学习笔记 21
  4. 到底什么是P问题,NP问题,NPC问题,NP-hard问题?什么是规约(或约化)?
  5. PHP OPCode缓存:APC详细介绍
  6. 微软技术大会预览:DevOps顾问是怎样开发自己的产品的
  7. Neo4j:动态添加属性/设置动态属性
  8. anaconda base环境_如何在最新版的Anaconda下安装Tensorflow 1.9
  9. PyCharm 中选中一个变量/函数后,所有用到这个变量/函数的地方高亮显示,改配色方案
  10. eclipse中variable references non-existion resource可能原因及解决方案
  11. 计算机主机系统总线,全国2009年10月高等教育自学考试计算机应用基础试题及答案...
  12. 微信小程序优惠券的购买和核销的操作流程设计
  13. winform的FormBorderStyle设置为None窗口的最小宽度不能小于132
  14. Minimum supported Gradle version is 4.10.1. Current version is 4.6.
  15. pycharm 查看 python源代码
  16. 基于sklearn的贝叶斯文本分类
  17. nvm介绍及常用命令
  18. 【天光学术】音乐论文:合唱音响融合度中音准和音色修正训练的作用(节选)
  19. 虚拟机中修改虚拟网络编辑器无效
  20. 程序人生 | 阿里面试小记

热门文章

  1. 6. Jetpack---Paging你知道怎样上拉加载吗?
  2. ESP8266给服务器发送数据
  3. 免费的网上商城商品管理系统
  4. Python求两数之和
  5. linux中病毒排查步骤,linux系统下病毒排除思路
  6. Idean2018版本创建Gradle项目配置Tomcat报404错误(The origin server did not find a current representation for the)
  7. 写简历没模板?别怕,这些开源项目帮你搞定!
  8. Java基础(六)——多线程的基本使用与原理
  9. A class of finite groups with abelian 2-Sylow subgroups By CHIH-HAN SAH
  10. 实用的60个CSS代码片段[下]