1. 很多时候,需要在绘图设备上进行连续或者重复绘图,如果每次都要进行重新绘图,会大大降低绘图效率。比如,要连续绘制椭圆形,采用以下方式:
voidWidget::paint(){
QPainterpainter;
QColorblack(0,0,0);
QColorlime(0,255,0);
QPenpen(black,1.5);
QPicturepicture_temp;
picture_temp.load("E:/softwareprogramme/painter_QT/painter/drawing.pic");
painter.begin(&picture);