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 {
|
2023-12-21 18:03:44 +00:00
|
|
|
app = new Root(u"qrc:magpie/main.qml"_qs, argc, argv);
|
2023-11-24 23:48:01 +00:00
|
|
|
} 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;
|
|
|
|
}
|