12 #include <QVideoWidget> 20 QVideoWidget* pvw =
new QVideoWidget;
21 pvw->setMinimumSize(300, 300);
25 m_pmp->setVideoOutput(pvw);
28 connect(
m_pmp, SIGNAL(stateChanged(QMediaPlayer::State)),
29 SLOT(slotStateChanged(QMediaPlayer::State)));
35 VideoPlayer::slotStateChanged(QMediaPlayer::State st)
37 if (st == QMediaPlayer::PlayingState) {
38 resize(size() + QSize(1, 1));
39 resize(size() - QSize(1, 1));
QVBoxLayout * m_pvbxMainLayout
VideoPlayer(QWidget *pwgt=0)