摘要:PaintArea::PaintArea(){ scale=1;//初始化scale image=QImage(800,600,QImage::Format_RGB32); backColor=qRgb(255,255,255);//设置背景色为白色 image.fill(backColor); paint(image);}void PaintArea::paintEvent(QPaintEvent *){ QPainter paint(this); paint.scale(scale,scale); paint.drawImage(0,0,image);}void PaintArea::pa
阅读全文