我设置了this->setAttribute(Qt::WA_PaintOutsidePaintEvent);然后在linux桌面版本上能够运行,但是在嵌入式Linux的板子上不能运行。会出现错误:
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
有谁能帮我解决这个问题,或者有什么其他的办法,是我能够在paintEvent外完成绘制操作。谢谢各位大侠。