mv = new QMovie(strIconPath + "justake.gif"); mv->setScaledSize(QSize(504,283)); ui->label_login_openlock_gif->setFixedSize(504,283); ui->label_login_openlock_gif->setMovie(mv); mv->start();//开始播放 mv->stop();//停止播放