上面是我原来的代码 下面是我按照您来改的。可运行后总是报错:
QPixmap::operator=: Cannot assign to pixmap during painting
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::end: Painter not active, aborted