Debugging item failing to receiving focus with QT_QPA_PLATFORM=offscreen
Unsolved
QML and Qt Quick
-
I have a unit test that fails to force keyboard focus on a text input when QT_QPA_PLATFORM = offscreen despite the item having a valid rectangle, being visible, enabled, and trying a mouse click, forceActiveFocus(), and setFocus(). The test passes when not using the “offscreen” platform. Needless to say, this is very difficult to debug.
One idea I had was to see if another item was blocking the item (although it should still receive focus with forceActiveFocus()). Does anyone have any idea how to do this?
Or any other idea how to debug this?
My code is too complex and too interlinked with my python code to put an example in here.