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. Keyboard simulation

Keyboard simulation

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 2.0k Views
  • 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.
  • A Offline
    A Offline
    alecs26
    wrote on last edited by alecs26
    #1

    Hello,

    I want to simulate keyboard keypress in Qt QML minwg on Windows.

    I tried this example:
    https://www.wisol.ch/w/articles/2015-07-26-virtual-keyboard-qt/
    It worked but there are two problems:

    1. It only sends actions to the Qt application (it doesn't work if I want to send actions to a web research bar)
    2. It works in the Qt application with QtQuick.Controls 1.3 but not with QtQuick.Controls 2.0

    Could you help me either:
    a) Give me a project example of a virtual keyboard or simple keypress or
    b) From the exemple I used above help me to solve these problems

    Thank you so much,

    Alex

    raven-worxR 1 Reply Last reply
    0
    • A alecs26

      Hello,

      I want to simulate keyboard keypress in Qt QML minwg on Windows.

      I tried this example:
      https://www.wisol.ch/w/articles/2015-07-26-virtual-keyboard-qt/
      It worked but there are two problems:

      1. It only sends actions to the Qt application (it doesn't work if I want to send actions to a web research bar)
      2. It works in the Qt application with QtQuick.Controls 1.3 but not with QtQuick.Controls 2.0

      Could you help me either:
      a) Give me a project example of a virtual keyboard or simple keypress or
      b) From the exemple I used above help me to solve these problems

      Thank you so much,

      Alex

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

      @alecs26 said in Keyboard simulation:

      it doesn't work if I want to send actions to a web research bar

      what is a "web research bar"?

      Did you already have a look at QtVirtualKeyboard?

      --- 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
      0
      • A Offline
        A Offline
        alecs26
        wrote on last edited by
        #3

        Sorry, by "web research bar" I meant the web browser address bar or simply a google search bar.

        I tried the QtVirtualKeyboard from the git repository you gave me but I got an error (module "QtQuick.VirtualKeyboard" is not installed) so I assumed that I needed the Qt virtual keyboard commercial version for it to work.

        Thank you,

        Alex

        raven-worxR 1 Reply Last reply
        0
        • A alecs26

          Sorry, by "web research bar" I meant the web browser address bar or simply a google search bar.

          I tried the QtVirtualKeyboard from the git repository you gave me but I got an error (module "QtQuick.VirtualKeyboard" is not installed) so I assumed that I needed the Qt virtual keyboard commercial version for it to work.

          Thank you,

          Alex

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

          @alecs26 said in Keyboard simulation:

          I meant the web browser address bar or simply a google search bar.

          thos search bars are inside your Qt application? or do you mean system wide?

          @alecs26 said in Keyboard simulation:

          so I assumed that I needed the Qt virtual keyboard commercial version for it to work.

          it's included in Qt 5.8 onwards with LGPLv3

          --- 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
          0
          • A Offline
            A Offline
            alecs26
            wrote on last edited by
            #5

            Thank you for your anwer. For the search bar, I mean system wide (for exemple the Chrome address bar).

            For the QtQuick.VirtualKeyboard, even with 5.8 it does not find it.
            I looked in "C:\Qt\5.8\msvc2013_64\qml\QtQuick" and it is not there...

            Thank you for your help and support.

            Alex

            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