diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-03-17 04:24:50 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-03-17 04:59:25 (GMT) |
commit | 82a53835a71a8e1902774c67e792bf6d7d6385de (patch) | |
tree | 2ee7954d5c0951a41d833a0b0106cbc185fe620f /doc/src | |
parent | 50c0c6a032ef2c0af8c93f52f5c2f86ca145e852 (diff) | |
download | Qt-82a53835a71a8e1902774c67e792bf6d7d6385de.zip Qt-82a53835a71a8e1902774c67e792bf6d7d6385de.tar.gz Qt-82a53835a71a8e1902774c67e792bf6d7d6385de.tar.bz2 |
QDeclarativeView flickers when composited on MeeGo
Set Qt::WA_OpaquePaintEvent and Qt::WA_NoSystemBackground for
QDeclarativeView on meego.
Change-Id: I301d2381ae831485d205ff42b0c15b3fa7a73424
Task-number: QTBUG-17173
Reviewed-by: Michael Brasser
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/declarative/qdeclarativeperformance.qdoc | 11 |
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 + */ |