summaryrefslogtreecommitdiff
path: root/examples/bluetooth/lowenergyscanner/main.cpp
blob: eaeba0c2079e6a8da46dd56e08264622c256d9b6 (plain)
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
// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include <QtCore/QLoggingCategory>
#include <QQmlContext>
#include <QGuiApplication>
#include <QQuickView>
#include "device.h"


int main(int argc, char *argv[])
{
    // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
    QGuiApplication app(argc, argv);

    Device d;
    QQuickView view;
    view.rootContext()->setContextProperty("device", &d);

    view.setSource(QUrl("qrc:/assets/main.qml"));
    view.setResizeMode(QQuickView::SizeRootObjectToView);
    view.show();
    return QGuiApplication::exec();
}