QPainter::begin: Paint device returned engine == 0, type: 2 解决方法
出问题的代码段希望将painterdevice设置为图片,如下:QPixmappicture;QPainterpainter;if(painter.begin(&picture))//paintinpicture{painter.drawEllipse(10,20,80,70);//drawanellipsepainter.end();picture.save("drawing.bmp");}这时