你是要怎么画图?导入图片,然后画在这个区域?void MainWindow::paintEvent(QPaintEvent *e){ QMainWindow::paintEvent(e); QPainter painter(this); if (m_pbgImage) { painter.drawPixmap(0, 0, this->width (), this->height (), *m_pbgImage); }}例如这样?