Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT5 keyboard layout in eglfs
Forum Updated to NodeBB v4.3 + New Features

QT5 keyboard layout in eglfs

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 3 Posters 7.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • yeckelY Offline
    yeckelY Offline
    yeckel
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Ghaith
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • yeckelY Offline
        yeckelY Offline
        yeckel
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • A Offline
          A Offline
          aandy51
          wrote on last edited by
          #4

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

          Thanks

          Andrea

          1 Reply Last reply
          0
          • yeckelY Offline
            yeckelY Offline
            yeckel
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aandy51
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • yeckelY Offline
                yeckelY Offline
                yeckel
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  aandy51
                  wrote on last edited by
                  #8

                  Libor,

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

                  Andrea

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aandy51
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • yeckelY Offline
                      yeckelY Offline
                      yeckel
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        aandy51
                        wrote on last edited by
                        #11

                        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

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved