QT5 keyboard layout in eglfs



  • Hi, I'm writing an embedded application using QT5 on raspbian linux and struggling with localized keyboard layout. In console I'm having those fancy czech characters, but I could not get them in QLineEdit inside my application. What is the replacement for QWS_KEYBOARD="TTY:keymap=xx.qmap"? On development machine under X11 localized keyboard is no problem. Thanks.



  • On Qt4 this easily achieved with simple perl script to the conversion.



  • Hi Ghaith, you are correct, this will help in QT4, but how is it in QT5 with its QPA instead of QWS?



  • Hi yeckel,
    I have the same problem.
    Did you find a solution/workaround?

    Thanks

    Andrea



  • Hi Andrea,

    I've submitted a patch https://codereview.qt-project.org/#change,51466 which is now part of Qt5.1 pre. You could basicaly use system variable QT_QPA_EVDEV_KEYBOARD_PARAMETERS instead of QWS_KEYBOARD. The parameters remains the same. If you'll have more problems with keymaps, feel free to contact me.



  • Hi Yeckel,
    thanks for your promt answer.

    At the moment I am using the bsquask sdk to get a minimal embedded system with
    very fast boot (3 sec approx on Raspberry @ 900Mhz).

    Do you suggest to go back to raspbian image and compile qt5.1 form git?

    Andrea



  • No problem,

    It depends how often you would restart the system. For me 25s from powering up the stystem and starting the application was not much problem. 3s is amazing performance. You can also cherry-pick the patch and apply it to 5.0.0 sources. It should work.

    BR,

    Libor



  • Libor,

    I'll try your patch...hoping to be able to apply it!
    However, thanks again

    Andrea



  • Hi Libor,
    I have applied your patch to Qt 5.0.1 source and now I can successfully load an italian qmap.
    Very nice, but remain a last problem: the euro key is displayed as 'internation currency' symbol, instead of the correct euro symbol.
    It seem that I need a different font map, but I don't know how make this change inside a qtquick 2 app.
    Regards

    Andrea



  • Hi Andrea,

    How are you typing € symbol? Have a look into the keymap and/or qmap file if the appropriate keyboard combination is there, otherwise add it.

    BR,

    Libor



  • Hi,
    I have added € to keymap as alt+e and effectively I get displayed a currency symbol.
    The problem is that I get the 'international currency' symbol (something like a small circle) not the euro

    Andrea


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.