I just did some more experiments and it seems that if I subclass QQuickView and put debug outputs in the focusInEvent and focusOutEvent handlers, there are cases in which clicking any element in the QML structure gives the quickview focus, but in other cases (e.g. when I click on one of the "border" widgets, not necessarily its own one, and then back into it) it doesn't get focus. How is that possible?