📄 main.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'Movie.ui'**** Created: Thu Mar 27 15:56:15 2008** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.5 edited Aug 31 12:13 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include <qapplication.h>#include <qprocess.h>#include <qstringlist.h>#include <qstring.h>#include <qwidget.h>#include <qmessagebox.h>#include "Movie.h"int main(int argc , char ** argv){ QApplication a(argc,argv); //QWidget * pm = new QWidget(0,"widget1"); Play_Movie * pm= new Play_Movie( 0 ); pm->setGeometry(10,20,640,480); //QWidget pm; //pm.setMinimumSize( QSize( 640, 480 ) ); //pm.setMaximumSize( QSize( 640, 480 ) ); a.setMainWidget(pm); //pm.move(50,100); /* QProcess * proc=new QProcess( pm ); QStringList args; args<< "mplayer" <<"-wid"<< QString::number((ulong) pm->winId()) <<"-slave" <<"-idle"<<"123.rm"; proc->setArguments( args ); if(!proc->start() ) QMessageBox::critical( 0, "Fatal error", "Could not start the mplayer command.", "Quit" ); */ /* QWidget pm; //pm.setWindowTitle("Welcome!"); pm.move(50,100); QProcess *proc=new QProcess; QStringList args; proc->addArgument("mplayer"); args << " -wid " << QString::number((int) pm.winId()) << "123.rm"; proc->addArgument(&args); //proc->start("mplayer",args); proc->start(); */ pm->show(); return a.exec(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -