27 lines
476 B
C++
27 lines
476 B
C++
#include <QGuiApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QQmlContext>
|
|
|
|
#include "SystemInfo.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QGuiApplication app(argc, argv);
|
|
|
|
SystemInfo systemInfo;
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
engine.rootContext()->setContextProperty(
|
|
"systemInfo",
|
|
&systemInfo
|
|
);
|
|
|
|
engine.loadFromModule("BottomDash", "Main");
|
|
|
|
if (engine.rootObjects().isEmpty())
|
|
return -1;
|
|
|
|
return app.exec();
|
|
}
|