path: root/examples/gui
diff options
authorGatis Paeglis <>2017-06-27 15:29:12 +0200
committerGatis Paeglis <>2017-07-03 10:20:37 +0000
commitce9a8063365aef38646a3fcebd39a79bd72a43fa (patch)
treefa89ef83f3214e4b46d179f15d1216baf9270fbe /examples/gui
parent87229adca83a6762d5517eba7c7dc0832f3819ff (diff)
doc: cleanup raster window example
Documentation does not match the sample code. There is no explicit call to QWindow::create(). It is called implicitly by QWindow::show(). Furthermore, QWindow::create() documentation states: "Note that it is not usually necessary to call this function directly, as it will be implicitly called by show(), setVisible(), and other functions that require access to the platform resources.". Change-Id: I632da86438f7f88c1fd8359b9fd6d52f329291cb Reviewed-by: Topi Reiniƶ <>
Diffstat (limited to 'examples/gui')
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/gui/doc/src/rasterwindow.qdoc b/examples/gui/doc/src/rasterwindow.qdoc
index d276925059..36612e1707 100644
--- a/examples/gui/doc/src/rasterwindow.qdoc
+++ b/examples/gui/doc/src/rasterwindow.qdoc
@@ -74,14 +74,9 @@
\snippet rasterwindow/rasterwindow.cpp 1
- The constructor first of all calls \l QWindow::create(). This will
- create the window in the windowing system. Without calling create,
- the window will not get events and will not be visible in the
- windowing system. The call to create does not show the window. We
- then set the geometry to be something reasonable.
- Then we create the backingstore and pass it the window instance it
- is supposed to manage.
+ In the constructor we create the backingstore and pass it the window
+ instance it is supposed to manage. We also set the initial window
+ geometry.
\snippet rasterwindow/rasterwindow.cpp 2