title: How to play more than one videos in a QGraphicsView at same time in Qt?
body: <p>if only playing one video,it's successful.but two or three,it's Failure.
  I note the document for QGraphicsVideoItem:</p>
  
  <p>Note: Only a single display output can be attached to a media object at one time.</p>
  
  <p>so,I want to know how to palying more then one video in a QGraphicsView ?
  Thanks!</p>
  
  <p>my test codes:</p>
  
  <pre><code>#include &lt;QtWidgets/QApplication&gt;
  #include &lt;QGraphicsScene&gt;
  #include &lt;QGraphicsVideoItem&gt;
  #include &lt;QMediaPlayer&gt;
  #include &lt;QGraphicsView&gt;
  
  int main(int argc, char *argv[])
  {
  QApplication a(argc, argv);
  
  QGraphicsScene scene;
  scene.setSceneRect(0,0,1920,1080);
  
  QGraphicsVideoItem *item1 = new QGraphicsVideoItem;
  QMediaPlayer * player1 = new QMediaPlayer;  
  player1-&gt;setVideoOutput(item1);
  player1-&gt;setMedia(QUrl::fromLocalFile("C:/Users/Public/Videos/Sample Videos/1.wmv"));
  player1-&gt;setVolume(0);
  scene.addItem(item1);
  item1-&gt;setPos(0,100);
  
  QGraphicsVideoItem *item2 = new QGraphicsVideoItem;
  QMediaPlayer * player2 = new QMediaPlayer;
  player2-&gt;setVideoOutput(item2);
  player2-&gt;setMedia(QUrl::fromLocalFile("C:/Users/Public/Videos/Sample Videos/2.wmv"));
  player2-&gt;setVolume(0);
  scene.addItem(item2);
  item1-&gt;setPos(500,500); 
  
  QGraphicsView view;
  view.setScene(&amp;scene);
  view.scale(0.3,0.3);
  view.show();
  player1-&gt;play();
  player2-&gt;play();
  
  
  return a.exec();
  }
  </code></pre>