diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-03-03 22:43:22 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-03-13 10:06:35 +0100 |
commit | 4eef300be70509a208527bf164f7746fa1bf07a1 (patch) | |
tree | cd8b57538e09cd60dd5795a33303cc8b2d78772d /tests/manual/quickwindow-switch/quickwindow-switch.pro | |
parent | 8b34a40c2c8e7468633555268cb1bea921e85a75 (diff) |
Allow for when a Scene3D item switches screens
When a Scene3D item switches screens then it will need to be
reinitalized so that the supporting contexts, offscreen surfaces are
set to use the same screen and not the original one. This ensures that
the item is still rendered correctly on the new screen.
This includes a manual test using QQuickWidget in separate windows that
enables it going from one screen to the other.
This is a fresh version after the previous version was found to have a
bug shown in the scene3d-loader test which has now been resolved.
Change-Id: I3c711e894018db52ec00a8a5d2e0fb0128743ab1
Done-with: Antti Kokko <antti.kokko@qt.io>
Fixes: QTBUG-79192
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'tests/manual/quickwindow-switch/quickwindow-switch.pro')
-rw-r--r-- | tests/manual/quickwindow-switch/quickwindow-switch.pro | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/manual/quickwindow-switch/quickwindow-switch.pro b/tests/manual/quickwindow-switch/quickwindow-switch.pro new file mode 100644 index 000000000..2f338d36d --- /dev/null +++ b/tests/manual/quickwindow-switch/quickwindow-switch.pro @@ -0,0 +1,13 @@ +TEMPLATE = app + +QT += 3dextras +CONFIG += resources_big + +QT += 3dcore 3drender 3dinput 3dquick 3dlogic qml quick 3dquickextras + +SOURCES += \ + main.cpp + +RESOURCES += \ + quickwindow-switch.qrc + |