Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem With QMediaPlayer



  • I'm Trying To Implement a simple audio player in my application but it gives me an error..

    The Parts I Just Added:
    @ player = new QMediaPlayer(this);
    playlist = new QMediaPlaylist(player);
    player->setPlaylist(playlist);@
    The Error:
    @'player' was not declared in this scope
    error: 'playlist' was not declared in this scope
    @

    Thanks In Advance..


Log in to reply