summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-03-17 17:05:03 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-17 17:05:03 (GMT)
commit9d63852e31674eb5de2da5cb57a09aff31aabb31 (patch)
tree68ea264ebbdc1b9f63b5c2f8d28941b82fff55ad /doc
parentcbf6c5b810316efba3ccfb27f05576b8dbfe3890 (diff)
parent64ad0c327c365713e320f981d99cdd255912b4d7 (diff)
downloadQt-9d63852e31674eb5de2da5cb57a09aff31aabb31.zip
Qt-9d63852e31674eb5de2da5cb57a09aff31aabb31.tar.gz
Qt-9d63852e31674eb5de2da5cb57a09aff31aabb31.tar.bz2
Merge remote-tracking branch 'origin/4.7' into qt-master-from-4.7
Conflicts: tests/auto/declarative/qdeclarativetext/tst_qdeclarativetext.cpp
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/qdeclarativeperformance.qdoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/declarative/qdeclarativeperformance.qdoc b/doc/src/declarative/qdeclarativeperformance.qdoc
index 36b4878..6760869 100644
--- a/doc/src/declarative/qdeclarativeperformance.qdoc
+++ b/doc/src/declarative/qdeclarativeperformance.qdoc
@@ -136,4 +136,15 @@ The QML Viewer uses the raster graphics system by default for X11 and OS X. It a
includes a \c -opengl command line option which sets a QGLWidget as the viewport of the
view. On OS X, a QGLWidget is always used.
+You can also prevent QDeclarativeView from painting its window background if
+you will provide the background of your application using QML, e.g.
+
+\code
+QDeclarativeView window;
+window.setAttribute(Qt::WA_OpaquePaintEvent);
+window.setAttribute(Qt::WA_NoSystemBackground);
+window.viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
+window.viewport()->setAttribute(Qt::WA_NoSystemBackground);
+\endcode
+
*/