Unsolved Keyboard simulation
-
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:- It only sends actions to the Qt application (it doesn't work if I want to send actions to a web research bar)
- 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 problemsThank you so much,
Alex
-
@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?
-
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
-
@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
-
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