Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.2
-
None
Description
When using a Loader to dynamically load components, the focus property of the Loader's item seems to not reset once the focus leaves the Loader.
The following MWE shows the issue; by using Tab the focus may be moved between the Loader and the descriptive text.
import QtQuick import QtQuick.Controls ApplicationWindow { id: root height: 480 visible: true width: 640 Column { anchors.centerIn: parent Loader { id: loader sourceComponent: Button { activeFocusOnTab: true text: "Loader focus: %1\nButton focus: %2".arg(loader.focus).arg(focus) } } Text { activeFocusOnTab: true text: "Loader focus: %1\nButton focus: %2".arg(loader.focus).arg(loader.item.focus) } } }
While the focus property of the Loader will be the false after leaving it, the Button retains its focus.