Querying current QtVirtualKeyboard Input Method



  • Can anyone tell me what property I can check to determine the active input method (i.e. handwriting, keyboard, etc.)?

    Basically, I'm looking to have some logic like:

    if (inputMethod === "handwriting") {
        //do this
    } else {
        //do that
    }
    

    or

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

    I have read through all of the documentation for InputMethod, InputEngine, and InputContext and, unfortunately, a description like, "provides access to an input context" isn't helpful.

    It tells me what the QML type has... but not what it is. Additionally, within the properties of two of the three QML types, the other two QML types are accessible, which seems a bit random and circular to me and only adds to my confusion.



  • Got the answer from @tony-clifton on Stackoverflow.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.