Given: QML Camera component with viewfinder in QQuickWidget container on Android / Qt 5.4.0 beta.
Crash: When the quickwidget container is deleted the app crashes. My guess is that the camera’s viewfinder still has a thread running which does not get terminated properly before the container deletes the qml engine.
Note: The same crash happens with a QuickView container instead of a QuickWidget container both in Qt 5.4 beta and Qt 5.3.
Related Bug: The QuickWidget is not displayed properly with Qt 5.4. It is occluded by the main window even though the main window is set to be hidden.
I prepared a test case which is attached to this bug report as a zip archive.
I also prepared a page with a detailed description of the problem with error logs and screen shots here: