qt5base-lts/examples
Laszlo Agocs 80520c2f52 Enable QWidget::grab() with QRhiWidget in the widget tree
This involves reimplementing QWidgetPrivate::grabFramebuffer().
Widgets call this function whenever a texture-based widget is
encountered.

This implies however that we rename QRhiWidget's own, lightweight
grab function, grab(), because it kind of shadows QWidget's grab().
Switch back to grabFramebuffer() which is what QQuickWidget and
QOpenGLWidget both use.

Supporting QWidget::grab() is particularly important when grabbing
an ancestor of the QRhiWidget, because that has no alternative.
Right now, due to not reimplementing the QWidgetPrivate function,
the place of the QRhiWidget is left empty.

In addition, grabFramebuffer() is now const. This is consistent
with QQuickWidget, but not with QOpenGLWidget and QOpenGLWindow.

Change-Id: I646bd920dab7ba50415dd7ee6b63a209f5673e8f
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-08-28 21:14:28 +02:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib Exclude some examples from Android build 2023-08-28 16:00:45 +03:00
dbus Exclude some examples from Android build 2023-08-28 16:00:45 +03:00
embedded Examples: Remove unnecessary Q_INIT_RESOURCE calls 2023-06-08 16:15:02 +00:00
gui Doc: Add \examplecategory to qtgui 2023-08-28 13:49:36 +02:00
network Exclude some examples from Android build 2023-08-28 16:00:45 +03:00
opengl Docs: Add link to OPenGL examples to OpenGL index 2023-06-30 18:46:55 +02:00
qmake examples: port qmake examples to new connection style 2022-12-21 22:52:17 +02:00
qtconcurrent Rework imagescaling example to avoid potential crashes 2023-04-26 19:27:30 +02:00
qtestlib Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sql Doc: Add remaining SQL examples to Data Processing & I/O category 2023-07-13 16:19:05 +02:00
vulkan Doc: Add \examplecategory to qtgui 2023-08-28 13:49:36 +02:00
widgets Enable QWidget::grab() with QRhiWidget in the widget tree 2023-08-28 21:14:28 +02:00
xml Add missing \l to DOM bookmarks example 2023-07-25 12:31:04 +02:00
CMakeLists.txt Move qpa examples to manual tests 2023-06-26 20:47:45 +02:00
examples.pro Move qpa examples to manual tests 2023-06-26 20:47:45 +02:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.