Avoid extra platformwindows with QQuickWidget
authorLaszlo Agocs <laszlo.agocs@digia.com>
Wed, 19 Feb 2014 12:31:51 +0000 (13:31 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Feb 2014 13:21:49 +0000 (14:21 +0100)
commit08c4a88a77563e50860c34164414fe014271ccc2
treed63420d27a16a5464e06a60d5d7c6ab2d258cc2e
parentfd5c629f4336b1f79afc653fceaf0f930e71eccd
Avoid extra platformwindows with QQuickWidget

QQuickWidget is nice but does not work on platforms like eglfs
because it always creates a (hidden) platform window for the
QQuickWindow.

This is now fixed by avoiding calling create() on the window and
using the toplevel window of the QQuickWidget instead.

Change-Id: Ia552f7a16d8b913fb798fde04b9304c6d037a46c
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
src/quick/items/qquickrendercontrol.cpp
src/quick/items/qquickwindow.cpp
src/quickwidgets/qquickwidget.cpp