diff options
Diffstat (limited to 'examples/sensors/sensor_explorer/main.cpp')
-rw-r--r-- | examples/sensors/sensor_explorer/main.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/examples/sensors/sensor_explorer/main.cpp b/examples/sensors/sensor_explorer/main.cpp deleted file mode 100644 index 4eeaa147..00000000 --- a/examples/sensors/sensor_explorer/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (C) 2017 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#include <QtQml> -#include <QtQuick/QQuickWindow> -#include <QtGui/QGuiApplication> - -int main(int argc, char *argv[]) -{ - QGuiApplication app(argc, argv); - QQmlApplicationEngine engine(QUrl("qrc:///sensor_explorer.qml")); - QObject *topLevel = engine.rootObjects().value(0); - QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel); - if (!window) { - qWarning("Error: Your root item has to be a Window."); - return -1; - } - window->show(); - return app.exec(); -} |