Hi,

I'm interested in adding a virtual keyboard to my application. I found this virtual keyboard that I want to use but I need to open it inside my application instead of opening it in a separate window. To do this I've added the header + source file to my project, added an empty widget to my UI and promoted it to the keyboard class. This gives me the following errors:

/home/stud/devel/build-keyboardTest-Desktop-Debug/ui_keyboardtest.h:30: error: 'keyboard' does not name a type
keyboard *widget;
^
/home/stud/devel/build-keyboardTest-Desktop-Debug/ui_keyboardtest.h:42: error: 'widget' was not declared in this scope
widget = new keyboard(centralWidget);
^
/home/stud/devel/build-keyboardTest-Desktop-Debug/ui_keyboardtest.h:42: error: expected type-specifier before 'keyboard'
widget = new keyboard(centralWidget);
^
I'm able to open the keyboard in a separate window, but this doesn't work. Also promote widget calls the constructor that takes only QWidget*, so the "Promote to" feature might not be an option for my classes that take more than QWidget* in the constructor. How can I do this in that case?

The virtual keyboard is found here:
https://www.kdab.com/qt-input-method-virtual-keyboard/

Source code:
https://github.com/KDAB/virtual-keyb.../master/server