Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.1.0
-
None
-
Linux Ubuntu 13.04
Description
QVideoWidget inside a QGraphicsView doesn't work. Here is a code to reproduce the bug:
QMediaPlayer *player = new QMediaPlayer();
QVideoWidget videoWidget;
player->setVideoOutput(&videoWidget);
QGraphicsScene scene;
QGraphicsProxyWidget *proxy
= scene.addWidget(&videoWidget);
QGraphicsView view(&scene);
player->setMedia(
QUrl::fromLocalFile("/home/cedric/Videos/musique_21sec.mp4"));
player->play();
view.show();
With that I get only a black window. The sound is playing thought. With a QraphicsVideoItem it is working (but it doesn't support brightness adjustement so sometimes we need to use a QVideoWidget). Outside of a QGraphicsView the QVideoWidget works well.