关于绘图 void MainWindow::paintEvent(QPaintEvent *) { QPainter painter(this); QPen pen; pen.setColor(Qt::blue); painter.setPen(pen);