Important: Please read the Qt Code of Conduct -

[Solved] Unable to display Video using Phonon

  • Dear All,

    I want to display a video on QWidget. For that, i am trying following code

    @QGridLayout *grid = new QGridLayout(this);

    Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
    grid->addWidget(player, 1, 0, 3, 1);

    I write this code in constructor of class. This code is compiling without any error. But, It does not display any video. Player is visible on widget but it is display in white color.

    Thnx in advance.

Log in to reply