blob: 617b43ac3818cbd3b6dfe0cb961336798164bcc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <QApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[]) {
QApplication application(argc, argv);
application.setOrganizationName("akr");
application.setApplicationName("MetaTerm");
QQmlApplicationEngine engine(QUrl(QStringLiteral("qrc:/main.qml")));
QObject::connect(
static_cast<QObject*>(&engine),
SIGNAL(quit()),
static_cast<QObject*>(&application),
SLOT(quit())
);
return application.exec();
}
|