- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
14 lines (11 loc) · 337 Bytes
/
Copy pathmain.cpp
File metadata and controls
14 lines (11 loc) · 337 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<QGuiApplication>
#include<QQmlApplicationEngine>
#include<treemodel.h>
intmain(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qmlRegisterType<TreeModel>("ggh.model", 1, 0, "TestModel");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}