Unsolved QtVirtualkeyboard
-
Hi. I'm try to use Qt Virtual keyboard in a normal QWidget application.
After adding the row below
qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));
the keyboard appears correctly but only in en language. The globe icon is not enable.
How can I use the other languages? Have I to rebuild the QtVirtualkeyboard plugin? Now I'm using the Qtvirtualkeyboard plugin found in the Qt 5.9 package. -
Hi,
U need to mention Ex : CONFIG+=lang-ar_AR in qtvirtualkeyboard plugin source code, and compile once again, then launch normal widget application.U will get it,
Thanks,
-
Hi,
Link :
https://forum.qt.io/topic/79500/example-of-virtual-keyboard-showing-in-different-languages/29
for how to get virtual keyboard in different languages, which was achieved n Windows platform and using Qt 5.8 and Qt 5.9 also.
Still exploring in ubuntu.
Provided the link for u coz i got the output in Windows using Qt 5.8, Qt 5.9, so it might be helpful for you.
Thanks,
-
So it is necessary to rebuild it.
-
yes.
Thanks,
-
Did on Windows. The keyboard works perfectly.
But on Linux? I obtain this error:g++: error: unrecognized command line option ‘-std=c++1z’
gcc --version
gcc (Debian 4.9.2-10) 4.9.2Debian 8, 64 bit
-
@mrdebug Did you configure it from a clean state (without build artefacts from previous build)?
-
Yes, tryied many times
-
-
@mrdebug
I am not 100% sure if gcc4.9 already supports c++1z
what happens if you change it to c++11 ?(this standard is supported by that 'old' gcc version ;) )edit
c++14 seems to be only partly supported by gcc4.9
see http://en.cppreference.com/w/cpp/compiler_support -
Maybe it is necessary to send a bug report to the QtVirtualkeyboard developers.
-
Hi,
Should wait for some days, and then file it, coz we need to try or may be someone has tried and have the solution, lets us try and wait for the solution.
Thanks,
-
Hi
I think it's related to gcc version.
I just build virtual keyboard in Kde neon with gcc 5.4
No errors.
-
-
Hi,
Install latest g++ and gcc versions and
Then u try to compile the qtvirtualkeyboard pluign
use qmake. then make clean. then make. make install.
Then run the program to launch to get virtual keyboard,
u will get the virtual keyboard.Note:
I am unable to get to respective languages, i am trying it.
will keep updating or if u get the virtual keyboard in respective languages, please post the solution.Thanks,
-
@Pradeep-Kumar
did you read http://doc.qt.io/qt-5/qtvirtualkeyboard-build.html ?you need to set
CONFIG+=<language>
in the.pro
file of qvirtualkeyboard before you rebuild it.