39 lines
848 B
C++
39 lines
848 B
C++
#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;
|
|
}
|
|
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));
|
|
return;
|
|
}
|
|
int RegiesterOwnType(){
|
|
//qRegisterMetaType<SerialThread>("SerialThread");
|
|
return 0;
|
|
}
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
initQss(); //step 2
|
|
|
|
MainWindow main;
|
|
main.setGeometry(0,0,800,600);
|
|
main.setWindowTitle("视频采集rtmp推流工具");
|
|
|
|
main.show();
|
|
return a.exec();
|
|
}
|