添加OpenCv
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -1,5 +1,6 @@
|
||||
#include "LaunchPage.h"
|
||||
#include <QApplication>
|
||||
#include <QLoggingCategory>
|
||||
#include <QLocale>
|
||||
#include <QTranslator>
|
||||
#include <QFile>
|
||||
@@ -106,6 +107,9 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
QApplication a(argc, argv); // 创建一个QApplication对象,它是所有GUI程序的起点
|
||||
// 打印 Qt 自带调试信息
|
||||
//QLoggingCategory::setFilterRules("*.debug=true");
|
||||
qputenv("QT_RESOURCE_DEBUG", "1"); // 开启资源加载调试
|
||||
#if CONFIG_EN_LOG
|
||||
gDefaultHandler = qInstallMessageHandler(myMessageOutput);//注册日志函数,在其它地方调用qInstallMessageHandler设置新的输出函数,但保存原来的函数
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user