QMediaPlayer::error() is never emitted even though video fails to play
问题 I'm connecting the QMediaPlayer::error() signal and trying to play a video file: QMediaPlayer *player = new QMediaPlayer; QMediaPlaylist *playlist = new QMediaPlaylist(player); playlist->addMedia(QUrl::fromLocalFile("/path/to/file.mp4")); QVideoWidget *videoWidget = new QVideoWidget; player->setVideoOutput(videoWidget); videoWidget->resize(640, 340); videoWidget->show(); ErrorPrinter *errorPrinter = new ErrorPrinter(player); QObject::connect(player, SIGNAL(error(QMediaPlayer::Error)),