multimedia/client/qt_gl_/yuvgl/main.cpp

39 lines
850 B
C++
Raw Normal View History

2020-06-04 15:28:45 +00:00
#include "mainwindow.h"
#include <QApplication>
#include "cplaywidget.h"
#include <QTimer>
#include "CameraCapture.h"
#include "mainwindow.h"
void CameraDataCallback(double ts, BYTE *dat, LONG size){
qDebug()<<"reieve cnt"<<size;
}
2020-06-06 07:39:55 +00:00
void initQss()
{
QFile file(":/qss/css/qss.css");
if (!file.open(QIODevice::ReadOnly))
exit(0);
QTextStream in(&file);
QString css = in.readAll();
qApp->setStyleSheet(css);
//qApp->setFont(QFont("微软雅黑", 9));
2020-06-06 07:39:55 +00:00
return;
}
int RegiesterOwnType(){
//qRegisterMetaType<SerialThread>("SerialThread");
return 0;
}
2020-06-04 15:28:45 +00:00
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
2020-06-06 07:39:55 +00:00
initQss(); //step 2
2020-06-04 15:28:45 +00:00
MainWindow main;
2020-06-06 07:39:55 +00:00
main.setGeometry(0,0,800,600);
main.setWindowTitle("视频采集rtmp推流工具");
2020-06-04 15:28:45 +00:00
main.show();
return a.exec();
}