blob: 32a88def4c45064220879294e3ab620c48cc9941 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "contactmodel.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
qmlRegisterType<ContactModel>("Backend", 1, 0, "ContactModel");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/contactlist.qml")));
return app.exec();
}
|