title: QVideoWidget doesn't show anything when aligned
body: <p>I've got a strange problem and need some help. The situation is quiet easy: I have a <em>QMediaPlayer</em>, <em>QVideoWidget</em> and some layout (ex. <em>QVboxLayout</em>; well, it doesn't really matter). The problem is when I add <em>QVideoWidget</em> with alignment specified - video doesn't show up, there's only a place for the widget, a blank area with no video. And there's no problem if I add it without specifying alignment. Here's the code example:</p>
  <p><em>Widget.h:</em></p>
  <pre><code>class Widget : public QWidget
  {
    Q_OBJECT
  
  public:
    Widget(QWidget *parent = 0)
      : QWidget(parent)
    {
      QVideoWidget *vw = new QVideoWidget();
      QVBoxLayout *vb = new QVBoxLayout();
      vb-&gt;addWidget(vw, 0/*, Qt::AlignCenter*/); /// &lt;&lt; here's the problem block
      this-&gt;setLayout(vb);
  
      QMediaPlayer *pl = new QMediaPlayer();
      pl-&gt;setMedia(QMediaContent(
                     QUrl::fromLocalFile(&quot;D:/1.wmv&quot;)));
      pl-&gt;setVideoOutput(vw);
      pl-&gt;play();
      this-&gt;resize(600, 480);
    }
    ~Widget() {}
  };
  </code></pre>
  <p>Any suggestions?
  Thanks in advance.</p>
  <h3>UPD:</h3>
  <p>Found an interesting thing - if &quot;qDebugging&quot; <em>geometry()</em> of video widget with center alignment &quot;<strong>off</strong>&quot; it looks like this: <em>QRect(11,11 579x459)</em>
  But if I try to align it to the center it looks like this: <em>QRect(300,240 0x0)</em></p>
  <p>AlignLeft: <em>QRect(11,11 0x456)</em></p>
  <p>Don't know why this happening and what is the right way to resolve this issue, but it repeats even if I change <em>QVideoWidget</em> with <em>QGraphicsScene-QGraphicsView-QGraphicsVideoItem</em> chain.</p>