You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
839 B
24 lines
839 B
2 years ago
|
#include <QtGui/QGuiApplication>
|
||
|
#include <QtQml/QQmlApplicationEngine>
|
||
|
#include <appLogReaderApp.h>
|
||
|
#include <MainViewModel.h>
|
||
|
|
||
|
QTMVVM_REGISTER_CORE_APP(appLogReaderApp)
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||
|
// If you want to support file dialogs on platforms other then android, use a QApplication instead (and add QT += widgets to the pro file)
|
||
|
QGuiApplication app(argc, argv);
|
||
|
|
||
|
QtMvvm::QuickPresenter::getInputViewFactory(); //Workaround for QTBUG-69963
|
||
|
qmlRegisterUncreatableType<MainViewModel>("com.example.applogreader", 1, 0, "MainViewModel", "ViewModels cannot be created!");
|
||
|
|
||
|
QQmlApplicationEngine engine;
|
||
|
engine.load(QUrl(QStringLiteral("qrc:/App.qml")));
|
||
|
if (engine.rootObjects().isEmpty())
|
||
|
return -1;
|
||
|
|
||
|
return app.exec();
|
||
|
}
|