16,203
社区成员
发帖
与我相关
我的任务
分享
void mov()
{
QMediaPlayer *player=new QMediaPlayer;
QVideoWidget *movWidget=new QVideoWidget(this);
player->setMedia(QURL);
player->setVideoOutput(movWidget);
movWidget->setFixedSize(w,h);
player->play();
movWidget->show();
}