-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (21 loc) · 676 Bytes
/
main.cpp
File metadata and controls
29 lines (21 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <QQmlApplicationEngine>
#include <QGuiApplication>
#include <QQmlContext>
#include "objects/flexbackend.h"
using namespace Quite::Objects;
using namespace Quite::Objects::Flex;
/*****************************************************************************/
int main(int argc, char *argv[]) {
QGuiApplication app(argc, argv);
qmlRegisterType<FlexBackend>(
"com.tripolskypetr.quitejs",
1, 0,
"FlexBackend"
);
QQmlApplicationEngine engine;
engine.load(QUrl(
QStringLiteral("qrc:/qml/example.qml"))
);
return app.exec();
}
/*****************************************************************************/