#include "AppLogReaderApp.h" #include "MainViewModel.h" #include AppLogReaderApp::AppLogReaderApp(QObject *parent) : CoreApp(parent) { QCoreApplication::setApplicationName(QStringLiteral("appLogReader")); QCoreApplication::setApplicationVersion(QStringLiteral("1.0.0")); QCoreApplication::setOrganizationName(QStringLiteral("Example Organization")); } void AppLogReaderApp::performRegistrations() { //if you are using a qt resource (e.g. "applogreadercore.qrc"), initialize it here Q_INIT_RESOURCE(applogreadercore); } int AppLogReaderApp::startApp(const QStringList &arguments) { QCommandLineParser parser; parser.addVersionOption(); parser.addHelpOption(); //add more options //shows help or version automatically if(!autoParse(parser, arguments)) return EXIT_SUCCESS; //show a viewmodel to complete the startup show(); return EXIT_SUCCESS; }