加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.cpp 1020 Bytes
一键复制 编辑 原始数据 按行查看 历史
fsfzp888 提交于 2021-03-13 21:11 . add text to speech notification
/*
* Copyright (c) 2016, Roman Meyta <theshrodingerscat@gmail.com>
* Copyright (c) 2020-2021 https://gitee.com/fsfzp888
* All rights reserved
*/
#include <QApplication>
#include <QTranslator>
#include <iostream>
#include "Logger.h"
#include "WebcamWindow.h"
#pragma comment(lib, "strmiids.lib")
#pragma comment(lib, "strmbase.lib")
int main(int argc, char *argv[])
{
logger_initFileLogger("run.log", 1024 * 1024, 5);
logger_setLevel(LogLevel_DEBUG);
LOG_INFO("Camera application start.");
std::locale loc = std::locale::global(std::locale(""));
QApplication app(argc, argv);
QString pluginPath = app.applicationDirPath() + "/plugins";
app.addLibraryPath(pluginPath);
app.setWindowIcon(QIcon(":app_icon.jpg"));
QTranslator translator;
translator.load("translation/zh.qm");
app.installTranslator(&translator);
WebcamWindow window;
window.show();
int res = app.exec();
std::locale::global(loc);
LOG_INFO("Camera application exit.");
return res;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化