Here’s the additional debug output from the instrumented browser:
[launching the browser, before pressing Ctrl+T] qml: AFI: Browser_QMLTYPE_185(0xb7cc5ae0) qml: AFI: QQuickFocusScope(0xb7d0f8c8) qml: AFI: QQuickFocusScope_QML_174(0xb80651a8) qml: AFI: WebViewImpl_QMLTYPE_122_QML_197(0xb80a5398)
[after pressing Ctrl+T] qml: AFI: QQuickTextInput(0xb7d844a8, "text_input") qml: AFI: WebViewImpl_QMLTYPE_122_QML_197(0xb80a5398) qml: AFI: QQuickListView(0xb814e608, "foldersList") qml: AFI: UrlPreviewGrid_QMLTYPE_134(0xb81266a0, "topSitesList") qml: AFI: UrlPreviewDelegate_QMLTYPE_132(0xb818f010, "topSiteItem") qml: AFI: QQuickTextInput(0xb7d844a8, "text_input") qml: AFI: TextField_QMLTYPE_71(0xb7d7b970, "addressBarTextField")
As can be seen with the last two lines, activeFocus is initially forwarded to the QQuickTextInput inside the TextField, and then for some reason activeFocus switches back to the parent TextField, but is removed from the QQuickTextInput.
Here’s the additional debug output from the instrumented browser:
[launching the browser, before pressing Ctrl+T] QMLTYPE_ 185(0xb7cc5ae0) e(0xb7d0f8c8) e_QML_174( 0xb80651a8) QMLTYPE_ 122_QML_ 197(0xb80a5398)
qml: AFI: Browser_
qml: AFI: QQuickFocusScop
qml: AFI: QQuickFocusScop
qml: AFI: WebViewImpl_
[after pressing Ctrl+T] (0xb7d844a8, "text_input") QMLTYPE_ 122_QML_ 197(0xb80a5398) 0xb814e608, "foldersList") QMLTYPE_ 134(0xb81266a0, "topSitesList") ate_QMLTYPE_ 132(0xb818f010, "topSiteItem") (0xb7d844a8, "text_input") QMLTYPE_ 71(0xb7d7b970, "addressBarText Field")
qml: AFI: QQuickTextInput
qml: AFI: WebViewImpl_
qml: AFI: QQuickListView(
qml: AFI: UrlPreviewGrid_
qml: AFI: UrlPreviewDeleg
qml: AFI: QQuickTextInput
qml: AFI: TextField_
As can be seen with the last two lines, activeFocus is initially forwarded to the QQuickTextInput inside the TextField, and then for some reason activeFocus switches back to the parent TextField, but is removed from the QQuickTextInput.