[Qt-interest] Phonon VideoPlayer does not render video in visible widgets

Jonathan Wong jhannwong at gmail.com
Sat May 2 10:58:40 CEST 2009


Wow, this is interesting. Nobody knows what's wrong here?

I fixed it.

Jonathan Wong wrote:
> Phonon's VideoPlayer does not show video in a widget if the widget had been setVisible(true) before.
> 
> The following works, but fails if we uncomment the 2nd line:
> 
> QWidget *videoView = new QWidget; videoView->resize(400, 400);
> //videoView->setVisible(true);
> Phonon::VideoPlayer *player =
>      new Phonon::VideoPlayer(Phonon::VideoCategory, videoView);
> player->play(Phonon::MediaSource("someVideo.mpg"));
> videoView->setVisible(true);
> 
> Is it a bug? Where is it? In Phonon? In QWidget (or lower)?
> 




More information about the Qt-interest-old mailing list