//---画背景 QPixmap pixmapBg(":bg.jpg"); QPainter painter(this); painter.drawPixmap(0, 0, pixmapBg); QPixmap pixmapTop(":top