首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > QT开发 >

QPainter:begin: A paint device can only be painted by one painter at a time解决思路

2012-03-21 
QPainter::begin: A paint device can only be painted by one painter at a time程序:paintEvent(){tank-

QPainter::begin: A paint device can only be painted by one painter at a time
程序:
paintEvent()
{

          tank-> paint();
          if(istrue==1)
                      zidan-> paint();
}

当isture==1的时候会出现错误
QPainter::begin:   A   paint   device   can   only   be   painted   by   one   painter   at   a   time

到底怎么了
这是个qt程序

[解决办法]
。。请把问题说得清楚些,不然谁都不知道你出问题在哪里。。

热点排行