-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (25 loc) · 761 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (25 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <QApplication>
#include "dlpy_main.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// if(argc==3&&(string)argv[1]=="-r"){
// std::cout<<"read"<<std::endl;
// dlpy_main *w=new dlpy_main(1,(string)argv[2]);
// w->show();
// }else if(argc==3&&(string)argv[1]=="-w"){
// dlpy_main *w=new dlpy_main(2,(string)argv[2]);
// w->show();
// }else{
// std::cout<<"example: ./dlpy_qt -r xxx.avi"<<std::endl;
// return 0;
// }
// sensor_data *data = new sensor_data();
// data->show();
// widget *wid = new widget();
// wid->show();
dlpy_main *w = new dlpy_main(1,"/home/hugo/code/bin/test12.avi");
w->setWindowFlags(Qt::FramelessWindowHint);
w->show();
return a.exec();
}