Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
None
Description
QQuickCanvasPrivate::clearFocusInScope asserts when the following "application" is closed
import QtQuick 2.0 Rectangle { width: 200 height: 200 FocusScope { id: focusScope anchors.fill: parent TextInput { anchors.centerIn: parent text: "Some text" onActiveFocusChanged: if (!activeFocus) focusScope.focus = false Component.onCompleted: forceActiveFocus() } } }
The assert happens on this line:
Q_ASSERT(item == rootItem || item == scopePrivate->subFocusItem);
"scopePrivate->subFocusItem" is already null at this point.