QVideoWidgeta の中に aを入れようとしてQGraphicsViewいますが、うまくいきません。
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/Vidéos/musique_21sec.mp4"));
player->play();
view.show();
それで、黒いウィンドウしか表示されません。ただし、サウンドは再生されます。誰が何が悪いのか教えてもらえますか?
で動作しQraphicsVideoItemますが、明るさを変更できないため、使用したくありません。外ではQGraphicsViewうまくQVideoWidgetいきます。
前もって感謝します!