QGuiApplication::focusObject() not working on embedded linux
I am trying to use QGuiApplication::focusObject() in my embedded Linux application but unfortunately it does not seem to work. My application and it works fine on my PC but the moment I try to run it on my device it seems that the function does not return a pointer to a valid object because casting it to a QtQuickItem gives me an empty pointer and trying to work with it directly just causes the application to crash with access violation error probably relating to the object not actually existing. What could cause something like this?
PS. I am on Qt 5.4.2 and Angstrom.