diff options
Diffstat (limited to 'examples/qt3d/controlsunderlay/main.cpp')
-rw-r--r-- | examples/qt3d/controlsunderlay/main.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/qt3d/controlsunderlay/main.cpp b/examples/qt3d/controlsunderlay/main.cpp deleted file mode 100644 index c49e81fb7..000000000 --- a/examples/qt3d/controlsunderlay/main.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#include <QGuiApplication> -#include <QQuickView> -#include <Qt3DRender/qt3drender-config.h> - -int main(int argc, char **argv) -{ - QSurfaceFormat format; - format.setSamples(4); - QSurfaceFormat::setDefaultFormat(format); -#if !QT_CONFIG(qt3d_rhi_renderer) - qputenv("QSG_RHI_BACKEND", "opengl"); -#endif - - QGuiApplication app(argc, argv); - - QQuickView view; - - view.resize(520, 500); - view.setResizeMode(QQuickView::SizeRootObjectToView); - view.setSource(QUrl("qrc:/main.qml")); - view.show(); - - return app.exec(); -} |