qt - How to / What to Query to get value of current QtVirtualKeyboard Input Method -


can tell me property can check determine active input method (i.e. handwriting, keyboard, etc.)?

basically, i'm looking have logic like:

if (inputmethod === "handwriting") {     //do } else {     //do } 

or

if (handwriting.active) {     //do } else {     //do } 

i have read through of documentation inputmethod, inputengine, , inputcontext and, unfortunately, description like, "provides access input context" isn't helpful.

it tells me qml type has... not is. additionally, within properties of 2 of 3 qml types, other 2 qml types accessible, seems bit random , circular me , adds confusion.

can done several ways depending on keyboard implementation. easiest way see using handwritinginputpanel's active property or detect handwritingmodekey press.


Comments