Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Tty Keyboard & Mouse Support in Qt5
Forum Updated to NodeBB v4.3 + New Features

Tty Keyboard & Mouse Support in Qt5

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 6.8k 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.
  • G Offline
    G Offline
    gsathyan
    wrote on 28 Aug 2012, 11:10 last edited by
    #1

    Hi,
    This is probably an obvious question, but since I've been trying to figure it out the last 2days, I thought I might well ask.
    How do I enable tty keyboard and linux support in Qt5 which has only QPA.
    Previously we were on Qt4.8 QWS, where we used to configure qt with -qt-kbd-linuxinput -qt-kbd-tty and export QWS_KEYBOARD and QWS_MOUSE env variables to the respective char devices in /dev. What is the equivalent of this in Qt5.
    Previously we were on directfb platform. Now we are evaluating both directfbegl and eglfs.
    Looks like it might be easier to enable this support in directfb as it already has the necessary eventHandlers, grab etc.
    It would be really helpful if you could provide your input on both fronts.
    Many thanks for your time & patience

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      y.meyer
      wrote on 6 Dec 2012, 12:22 last edited by
      #2

      Hi,

      I have the same issue with QWS_KEYBOARD that is missing in QT5.
      Therefore I have a keyboard input that is counted twice : when I press 'a', I have "aa" that is entered in the input field.

      Do you have find something to specifiy the linux keyboard input ?

      I know that I have a similar issue on Qt4.8 and I solve it by specifying a the correct input device by using the export variable QWS_KEYBOARD.

      Many thanks for your help.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gsathyan
        wrote on 6 Dec 2012, 12:30 last edited by
        #3

        I got clarifications for this in the Qt-Interest mailing forum:
        http://lists.qt-project.org/pipermail/interest/

        Basically you use evdev plugin to do this in Qt5

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sanv
          wrote on 26 Mar 2013, 15:05 last edited by
          #4

          I have the same problem as the y.meyer.
          ./temp_text -plugin evdevkeyboard:/dev/input/event0 -It did not help..
          Raspbian(121028)+qt5.0.1.
          Help me,pls.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sanv
            wrote on 27 Mar 2013, 13:45 last edited by
            #5

            Hi.

            I am add patch:https://codereview.qt-project.org/#change,50073.
            I do like this: http://tomsik.eu/node/429
            ckbcomp -layout ru > ru.kmap
            kmap2qmap ru.kmap ru.qmap
            export QT_QPA_EVDEV_KEYBOARD_PARAMETERS="keymap=/home/pi/ru.qmap"
            ./temp_text -plugin evdevkeyboard : /dev/input/event0
            When i press ‘a’, I have “aa”.
            When I press ALT+SHIFT(ctr+shift etc.):
            1.The keyboard does not switch -ru.
            2.Terminal write: "Got EOF from the input device."

            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