Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/AlterX76/VirtualKeyboard

6
Become a Fan
5.0

Description:
*** THE MOST USED KEYBOARD FOR FREE AND COMMERCIAL APPLICATIONS ***

A component to easily add virtual keyboards for touch-screen applications
Virtual Keyboard for touch-screen devices written in C/C++ Qt, compatible for Qt 4.x and 5.x The widget works with QLineEdit, but you can modify it for your convenience.

Features:

-- Floating or embedded in QWidget feature
-- Numeric Keyboard
-- click sound buttons
-- copy/cut and paste facility
-- echo password facility
-- dynamic keyboard layout based on selected language
-- move around textbox using TAB or directly click on a textbox (require subclassing as in the provided example)
-- Dual mode keyboard: large and small
-- zoom facility for pressed keys
-- as many instances as you want in the same application

Supported Languages:

Arabic
English
French
German
Italian
Russian

We appreciate any donation (at bottom of http://www.softairrealfight.net) since this will be used to improve or better support this project.

Have a nice day
Last changelog:

Small changes

- Add a new parameter to the show() method to create a frameless keyboard for reduced displays
- Fixed a bug preventing "." and "," from being displayed when numeric pad is set


Ratings & Comments

55 Comments

PYBeginner

Amazing! Is there any guide on how to implement it to Qt4? I would appreciate any help! Have tried to do it on my own but failed miserably. Using Raspberry Pi 3, Jessie, and Python to Qt4. Cheers.

AlterX

Hi, code is already compatible for Qt 4.x Anyway I am here to support you :) Which errors do you have?

AlterX

Hi to add Spanish it is very simple: grab the entire code take one of *.ts file, customize it for spanish, expand the code in the GUI to support the new language and test it running the app; as soon as you think everything is working fine, send it back to me and I will do a smoke test and then if it is ok I will integrate it.

chemel9

please add support for spanish language i can help

rainmaker

i cannot find form.h in the repository.. can any one help me out.. while running now i am getting only the number keypad. no letters are there

maratk1n

Similarly:) I just created a form class (form.h, form.cpp, form.ui, but then you need to remove the excess in Tester.pro) and compiled it. this->myKeyboard = new widgetKeyBoard(false, 0, false); //The third argument for outputting the alphabetic keyboard

smratijohri

hello, i want a virtual keyboard for qnx, so i tried your code, i am unable to build it on QtCreator, version i am using is 3.6.0 and platform is windows. error:'QClipboard' does not name a type. its showing error in Qt files itself. can you please guide me on the same. I really need a virtual keyboard for qnx in my project. thanks Smrati

AlterX

Hi, that is really strange since I am used to compile on windows using QtCreator 3.6 I think you have a problem with your Qt installation. Remove and reinstall it again should fix the problem

alirezatkh2

hi. thanks for your code. I want to use both english and french layouts and change them with a push button. do you have any idea what should I do? is it easy or a complex code?

AlterX

Hello... that is feasible. I think you have to dynamically load Translation spefying the ts file and then refreshing of the QPushButton There are a lot of example outthere on how to do this.

alirezatkh2

Thanks for soon answer. I'm on it now. but I don't know how refresh or update the widgetKeyBoard! by which codes can I refresh it?

AlterX

I just released a new version that is capable to change keyboard layout dynamically based on the selected language

alebaroni86

Hi, I'm using Qt Creator 3.5.1 built on Qt 5.5.1 on Linux Ubuntu 14.04 LTS. I've t add a virtual keyboard to my HMI project, adding float value and text to DoubleSpinBox and TextEdit elememts; actually i'm not able to add this project to mine and i'd like to know if i can add it to Qt's project with 5.5.1 version. Is it compatible? Thanks Alessio

AlterX

Hi Alessio, I didn't get it, sorry. Since we are both italians, please contact me in private.

HoMS

First thanks for your great keyboard. In a little testproject i implemented it and it worked fine. but in my actual project i declared and initialized the keyboard in my main class and passed it to an instance of another class. show and hide is working as expected but the keyboard is not taking any input. do you have an idea what can be the reason? if needed i could send you my actual project. Greetings

AlterX

Hello, the only things I can think about are: 1. you are writing, but there is no real textbox with focus 2. you are blocking the main loop thread Send me the code so I can better understand the problem

JorgeIII

Hello, First of all, tahnk you for the great code you provided. It was exactly what I was looking for. I have already implemented it and it works great. The thing is, I am looking to modify the focus of the line edit without having to press the virtual keyboard's TAB key. I saw how you did that in the example provided bye creating a new class "ExampleMyFocus". My question is: Is there a way to do the same function as this class without having to create it? Creating it would mean that I would have to modify each and every line edit I already have in my program, and I think there is a better solution that I am failing to find. Thanks in advance, and great work on the code.

AlterX

Hello, I just released new code with small improvements. The only suggestion I can give to you, if I correctly understood your question, is to use "promotion of widget" on QLineEdit with class uses focus. I changed the example to show how it works. The only inconvenience you have to do manually on all QLineEdit in the ui designer (but the instance you want to promote to will be done only once).

JorgeIII

Thanks! I completely forgot about Widget promotion! Let me implement the changes and use the updated code too. Thanks again for the reply.

AlterX

I found an old version bundled with Qt 5.x code. Since it is very old and not supported, you have to compare code to check for fixed bugs or new features. This is the best I can do!

jastmc

I am using this as a keypad and it works great. However I cannot use it from two different classes in the same app. I set up one keypad to enter a PIN in the first class and that works fine. When I set up another keypad in another class in order to enter data in the second class, the keypad comes up blank - there are no keys in the keypad. How can I get around this? Regards, James

AlterX

It is very strange this behaviour since the object is reentrant and so different instance can live all together...anyway I don't know your code, just try to create one global instance and change it when needed.

mrwallyit

Hello, good application. If i change QlinetEdit with Tab or Return works correctly, if i push the lineedit the focus is changed but i see the preceding lineedit that blinks( i wrote a lot of char). Thanks My Best regards

Robinson0

Thanks for your sharing ,firstly.I have a problem ,when i make it with Qt4.7 ,it happens an error:QGuiApplication,no such file or directory.Is not it supports Qt4?

AlterX

Hi, no actually it doesn't support Qt 4.x. You need to do some changes in order to get worked; some hints (from the virtualkeyboard Qt 5.x code): 1. QtGuiApplication -> QApplication 2. toUtf8() -> toAscii() - (optional) 3. erase "widgets" module from .pro 4. other stuff

Pling
0 Affiliates
Details
license GPLv2 or later
version 2018.02
updated
added
downloads 24h 1
mediaviews 24h 0
pageviews 24h 16

More Qt Widgets from AlterX:

Qt Generic Compass (contribution to Qt framework)
AlterX
last update date: 7 years ago

Score 5.0

Other Qt Widgets:

Widget Virtual Keyboard
embitel
last update date: 15 years ago

Score 5.3

Widget Marquee Label
embitel
last update date: 15 years ago

Score 6.1

Widget Color Picker
embitel
last update date: 15 years ago

Score 4.7

QtitanDataGrid advanced Grid for Qt
BigZ1
last update date: 7 years ago

Score 5.7

QtitanRibbon Microsoft RibbonUI and Office Styles for Qt
BigZ1
last update date: 7 years ago

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1



System Tags