summaryrefslogtreecommitdiffstats
path: root/tests/manual/stereographicsview/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/stereographicsview/main.cpp')
-rw-r--r--tests/manual/stereographicsview/main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/manual/stereographicsview/main.cpp b/tests/manual/stereographicsview/main.cpp
new file mode 100644
index 0000000000..a085f782b3
--- /dev/null
+++ b/tests/manual/stereographicsview/main.cpp
@@ -0,0 +1,26 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include "mainwindow.h"
+
+#include <QApplication>
+#include <QSurfaceFormat>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+
+ QSurfaceFormat format;
+ format.setDepthBufferSize(24);
+ format.setStencilBufferSize(8);
+ format.setSamples(16);
+ format.setStereo(true);
+ QSurfaceFormat::setDefaultFormat(format);
+
+ MainWindow w;
+ w.show();
+ return a.exec();
+}
+
+
+#include "main.moc"