43 lines
921 B
C++
43 lines
921 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
#include "cplaywidget.h"
|
|
#include <QTimer>
|
|
#include "CameraCapture.h"
|
|
#include "mainwindow.h"
|
|
#include <qlibrary.h>
|
|
#include <qsysinfo.h>
|
|
#include <qt_windows.h>
|
|
#include <Tlhelp32.h>
|
|
|
|
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[])
|
|
{
|
|
QssEventFilter filter;
|
|
QApplication app(argc, argv);
|
|
app.installNativeEventFilter(&filter);
|
|
|
|
initQss(); //step 2
|
|
|
|
MainWindow main;
|
|
main.setGeometry(0,0,800,600);
|
|
main.setWindowTitle("视频采集rtmp推流工具");
|
|
|
|
main.show();
|
|
return app.exec();
|
|
}
|