QWidget::paintEngine: Should no longer be called QPainter::begin: Paint device returned engine == 0

来源:互联网 发布:注册淘宝小号的技巧 编辑:程序博客网 时间:2024/06/05 12:11

在paintEvent函数外使用QPainter进行绘图时出现此错误,将绘图代码移入paintEvent中则正常运行。




0 0