Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Out of scope
-
Affects Version/s: 5.1.0
-
Fix Version/s: None
-
Component/s: Multimedia, Widgets: GraphicsView
-
Labels:None
-
Environment: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.