Newer
Older
CasicBioRecNew / main.cpp
#include "CasicBioRecWin.h"

#include <QApplication>

INITIALIZE_EASYLOGGINGPP // 初始化easylogging++组件库

int main(int argc, char *argv[])
{
    qputenv("QT_IM_MODULE", QByteArray("Qt5Input"));

    QApplication a(argc, argv);

    // Load conf setting
    el::Configurations conf(QApplication::applicationDirPath().toStdString() + "/conf/log.conf");
    el::Loggers::reconfigureAllLoggers(conf);

    // Fatal level do not stop program
    el::Loggers::addFlag(el::LoggingFlag::DisableApplicationAbortOnFatalLog);

    // Init Verbose level
    el::Loggers::setVerboseLevel(9);

    CasicBioRecWin w;
    w.show();
    return a.exec();
}