Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35299

QVideoWidget inside a QGraphicsView doesn't work

    XMLWordPrintable

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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            cedrix cédric bettinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes