QT += core guiTARGET = MyPlayerTEMPLATE = appSOURCES += main.cpp\ mainwindow.cppHEADERS += mainwindow.hFORMS += mainwindow.ui INCLUDE += ./vlc-qt
LIBS += ./vlc/libvlc.dllLIBS += ./vlc/libvlc-qt.dllLIBS += ./vlc/libvlccore.dllLIBS += ./vlc/libvlc-qt.dll.a
m_videoWidget = new VlcVideoWidget(centralwidget);
DemoPlayer::DemoPlayer(QWidget *parent) : QMainWindow(parent){ centralwidget = new QWidget(parent); centralwidget->setObjectName("centralwidget"); m_videoWidget = new VlcVideoWidget(centralwidget); fileMenu = new QMenu(this); QAction *openFileAction = fileMenu->addAction(tr("Open File...")); menuBar()->addMenu(fileMenu); _instance = new VlcInstance(VlcCommon::args(), this); _player = new VlcMediaPlayer(m_videoWidget->widgetId(), this); connect(openFileAction, SIGNAL(triggered()), this, SLOT(open()));}