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. Is it possible to open QtVirtualKeyboard by code?
Qt 6.11 is out! See what's new in the release blog

Is it possible to open QtVirtualKeyboard by code?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 332 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.
  • Y Offline
    Y Offline
    Yina
    wrote on last edited by
    #1

    Hello

    When a user edits a QLineEdit a pop up shows up where the user sees what he types, my 2 QlineEdits are linked through pointers and that works correctly. But now if you want the virtual keyboard to show, you first need to click on the QlineEdit. So i'm wondering if its possible to make the keyboard appear instantly when the pop up opens?

    Kind regards
    Yina

    raven-worxR 1 Reply Last reply
    0
    • Y Yina

      Hello

      When a user edits a QLineEdit a pop up shows up where the user sees what he types, my 2 QlineEdits are linked through pointers and that works correctly. But now if you want the virtual keyboard to show, you first need to click on the QlineEdit. So i'm wondering if its possible to make the keyboard appear instantly when the pop up opens?

      Kind regards
      Yina

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Yina
      the input method (VirtualKeyboard) can be shown via

      qGuiApp->inputMethod()->show();
      

      But the keyboard might decide not to show when there currently is no object accepting input focus.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • Y Offline
        Y Offline
        Yina
        wrote on last edited by
        #3

        @raven-worx

        Thank you once again, this solution was spot on :-)

        Kind regards,
        Yina

        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