From af33765b577bb3b8049f95ee40dc66d3f93ca969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Thu, 30 Aug 2012 14:07:59 +0200 Subject: Add links to raster and opengl window examples in the QWindow docs. Change-Id: I4d4ddffd6b8aa682b516b55ed2c5e71585d83bcf Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/kernel/qwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui') diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 8d8e92a4bb..3b12768678 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -72,6 +72,14 @@ QT_BEGIN_NAMESPACE A window that is supplied a parent becomes a native child window of their parent window. + An application will typically use QWidget or QQuickView for its UI, and not + QWindow directly. Still, it is possible to render directly to a QWindow + with QBackingStore or QOpenGLContext, when wanting to keep dependencies to + a minimum or when wanting to use OpenGL directly. The + \l{gui/rasterwindow}{Raster Window} and \l{gui/openglwindow}{OpenGL Window} + examples are useful reference examples for how to render to a QWindow using + either approach. + \section1 Resource management Windows can potentially use a lot of memory. A usual measurement is -- cgit v1.2.3