Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Querying current QtVirtualKeyboard Input Method
Forum Updated to NodeBB v4.3 + New Features

Querying current QtVirtualKeyboard Input Method

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 653 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PacMan
    wrote on last edited by PacMan
    #1

    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.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PacMan
      wrote on last edited by
      #2

      Got the answer from @tony-clifton on Stackoverflow.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved