blob: 19028e9f64630754752acf73dd23210e70480181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2017 Lorn Potter.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QGuiApplication>
#include <QtQuick/QQuickView>
#include <QtQml/qqml.h>
#include <QDebug>
#include "collector.h"
int main( int argc, char** argv )
{
QGuiApplication app( argc, argv );
qmlRegisterType<Collector>("Collector", 1, 0, "Collector");
QQuickView view;
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.setSource(QUrl("qrc:qml/main.qml"));
view.show();
return app.exec();
}
|