magpie/main_web.cpp

17 lines
353 B
C++
Raw Normal View History

2023-11-22 23:13:33 +00:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "root.h"
int main(int argc, char *argv[]) {
2023-11-24 23:48:01 +00:00
Root* app;
2023-11-22 23:13:33 +00:00
2023-11-24 23:48:01 +00:00
try {
app = new Root(u"qrc:qml/main.qml"_qs, argc, argv);
} catch (const std::exception& exception) {
std::cerr << "Couldn't start megpie: " << exception.what() << std::endl;
}
2023-11-22 23:13:33 +00:00
return 0;
}