I use Qt 5.10.0 with qtvirtualkeyboard 2.1 with an embedded board and FriendlyCore on SMART4418.
when i run my application in Normal cmd (./myapp), there isn't any problem anything is right. but if i run my qt app via x11(startx ./myapp), qtvirtualkeyboard doesn't work and when i press any key sends message :
"Input Method is not set."

i have set QT_IM_MODULE already with:
qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

but problem exists yet.

my application runs very faster in X11.Why?

what do i suppose to do for solving this issue?
thanks alot.