virtualKeyboard not sending events to qt application in Embedded Linux i.MX6 platform
Unsolved
Mobile and Embedded
-
I am trying to use githubuser0xFFFF's virtual keyboard with Qt5.5 on embedded linux system: https://github.com/githubuser0xFFFF/QtFreeVirtualKeyboard
When the virtual keyboard runs QGuiApplication::focusObject() it crashes my qt program with "QCoreApplication::sendEvent: Unexpected null receiver"
void DeclarativeInputEngine::sendKeyToFocusItem(const QString& text) { qDebug() << "CDeclarativeInputEngine::sendKeyToFocusItem " << text; QInputMethodEvent ev; if (text == QString("\x7F")) { //delete one char ev.setCommitString("",-1,1); } else { //add some text ev.setCommitString(text); } QCoreApplication::sendEvent(QGuiApplication::focusObject(),&ev); }
How do I correctly connect my virtual keyboard declarative engine to my qt program in an embedded environment? Because the virtual keyboard works as expected on Ubuntu 14.04 development environment.
Thanks!