qt5base-lts/tests/manual/stereographicsview/CMakeLists.txt
Kristoffer Skau c450f6d21c Support stereoscopic rendering with QGraphicsView
This patch adds a manual test and the required work in graphicsview and
qwidget private apis to support stereoscopic rendeing. Basically it
works by doing the drawing in QGraphicsView::paintEvent twice, once for
each buffer. This way the scene items are rendered to both buffers.
There's also an update to resolvement in QOpenGLWidgetPrivate
so that multisampling works correctly.

[ChangeLog][Widgets][QGraphicsView] Added support for
stereoscopic rendering.

Task-number: QTBUG-64587
Change-Id: I20650682daa805b64fe7f0d2ba086917d3f12229
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2022-12-01 13:42:07 +01:00

33 lines
775 B
CMake

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# Generated from stereographicsview.pro.
#####################################################################
## stereographicsview Binary:
#####################################################################
set(CMAKE_AUTOUIC ON)
qt_internal_add_manual_test(stereographicsview
GUI
SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
mygraphicsview.h
mygraphicsview.cpp
LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate
Qt::OpenGL
Qt::OpenGLWidgets
Qt::Widgets
Qt::WidgetsPrivate
)
#### Keys ignored in scope 1:.:.:stereographicsview.pro:<TRUE>:
# TEMPLATE = "app"