How to enable my platform input context on QT5 for QLineEdit
-
I implemented myplatforminputcontext inheriting from qplatforminputcontext and was trying to use this input context for my windows demo using a QLineEdit. But when I focus on the QLineEdit, the function filterEvent of myplatforminputcontext with event RequestSoftwareInputPanel is never called. Therefore I cannot receive this event to show up the soft keyboard. Do we need do something to enable this input context for my demo application like using QApplication::setInputContext(context) on QT4? On QT5, I don't find QApplication::setInputContext to set input context for application and I'm getting stuck in this task.
Could you help me? It's pretty urgent to fix this problem for my project :(