qt5base-lts/examples/opengl
Volker Hilsheimer 44fb925f50 Phase 2 of removing QDesktopWidget
Remove QDestopWidget public header, simplify the implementation that
maintains a Qt::Desktop type QWidget for each QScreen, and turn
QWidget's initial target screen into a QScreen pointer.

QApplication::desktop() now takes an optional QScreen pointer, and
returns a QWidget pointer, so that applications and widgets can get
access to the root widget for a specific screen without having to
resort to private APIs.

QDesktopWidgetPrivate implementations to look up a screen for an index,
widget, or point are now all inline functions that thinly wrap
QGuiApplication::screens/screenAt calls. We should consider adding those
as convenience APIs to QScreen instead.

Note that QWidget::screen is assumed to return a valid pointer; there is
code that handles the case that it returns nullptr (but also code that
trusts that it never is nullptr), so this needs to be defined, verified
with tests, and asserted. We can then simplify the code further.

Change-Id: Ifc89be65a0dce265b6729feaf54121c35137cb94
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-06-08 20:29:49 +02:00
..
2dpainting Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
computegles31 Post Merge Fixes 2020-01-24 12:29:18 +00:00
contextinfo Move QOpenGLShaderProgram from QtGui to QtOpenGL 2020-02-20 16:11:02 +01:00
cube Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
doc Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
hellogl2 Phase 2 of removing QDesktopWidget 2020-06-08 20:29:49 +02:00
hellogles3 Post Merge Fixes 2020-01-24 12:29:18 +00:00
hellowindow Fix hellowindow example 2020-05-25 17:37:57 +02:00
openglwindow Post-merge fixes 2020-01-30 20:45:08 +00:00
paintedwindow Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qopenglwidget Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
qopenglwindow Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
textures Replace calls to deprecated QEvent accessor functions 2020-06-08 19:11:51 +02:00
threadedqopenglwidget Move QOpenGLWidget from QtOpenGL to its own module 2020-02-18 09:22:51 +01:00
CMakeLists.txt Post-merge fixes 2020-01-30 20:45:08 +00:00
opengl.pro Remove legacy OpenGL examples 2020-02-21 09:01:08 +00:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00

Qt provides support for integration with OpenGL implementations on all
platforms, giving developers the opportunity to display hardware accelerated
3D graphics alongside a more conventional user interface.

These examples demonstrate the basic techniques used to take advantage of
OpenGL in Qt applications.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.