Comment 9 for bug 1545802

Revision history for this message
Andrea Bernabei (faenil) wrote :

That should not make a difference, as far as I know.

FocusScope redirects focus to the last child who requested it.

I believe in this case, the problem might be that something is setting focus:false on the QQuickTextInput. When you do that, the FocusScope does not know whom to redirect the focus to anymore, as far I know.

And that would explain why nothing is happening.

So, in the beginning TextInput has focus true, so when TextField is focused it redirects the focus to QQuickTextInput. Then somehow QQuickTextInput focus is set to false. The next time TextField is focused, it doesn't redirect the focus to QQuickTextInput because it is actually *not* asking for focus (i.e. it's focus property is false).

Hope that helps :)