MainWindow::MainWindow(QMainWindow* parent): QMainWindow(parent){ QTextCodec *codecRus = QTextCodec::codecForName("cp1251"); QTextCodec::setCodecForTr(codecRus); QGraphicsScene *scene = new QGraphicsScene; QGraphicsView *view = new QGraphicsView(scene); QWidget *pWgt = new QWidget; QHBoxLayout *pHLtPlayer = new QHBoxLayout; Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory); player->play(QString("d:/1.avi")); QGraphicsProxyWidget *pProxyWgt = scene->addWidget(player); pHLtPlayer->addWidget(view); pWgt->setLayout(pHLtPlayer); this->setCentralWidget(pWgt);}