How to make custom style for VirtualKeyboard
-
Hi all,
I want to make custom style for Virtual keyboard to hide the Handwriting panel button, British English from space panel,resize the key panels, height and width of keyboard.
So i have followed these links given below,
https://stackoverflow.com/questions/48020896/remove-british-english-in-virtual-keyboard-qml
https://stackoverflow.com/questions/48592098/qt-virtual-keyboard-custom-style
https://doc.qt.io/qt-5/technical-guide.htmlSo i have followed all the steps which are there in qt documentation(Technical guide).
In main.cpp:
qputenv("QT_IM_MODULE",QByteArray("qtvirtualkeyboard"));
qputenv("QML2_IMPORT_PATH", ":/QtQuick/VirtualKeyboard/Styles"); //this QtQuick floder is located in my project.qrc
qputenv("QT_VIRTUALKEYBOARD_STYLE","test");//test folder contains style.qmlAfter execution:
WARNING: cannot find style "test" - fallback: "default"Any help would be appreciated.
Thanks
-
@sharath
i am pretty sure you will find the answer in this thread -
@raven-worx
Thanks a lot @raven-worx , you are superb. you have given step by step. thanks once again. its working now. -
hello @raven-worx , sorry for asking again, solution is working with debug mode perfectly. when the moment i run my project in release mode i will get the below run time errors and keyboard layout is coming with blank.
file::/layouts/en_GB/digits.qml:1:1: Expected token `numeric literal'
file::/layouts/en_GB/digits.qml:1:1: Expected a qualified name idCan you please help me to solve this.
Thanks,