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. How can I let my Qt5.9.2 to get the matrix keyboard event
QtWS25 Last Chance

How can I let my Qt5.9.2 to get the matrix keyboard event

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 759 Views
  • 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.
  • S Offline
    S Offline
    SimonHill
    wrote on last edited by
    #1

    I have transplant the QT5.9.2 to my embedded board, everything is working ok, just can't get keypress event. I have checked the driver is working in good condition. I wondering it should be map the matrix keyboard,otherwise the QT can't get the keyevent

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What do you mean by transplant ?

      Did you use another Qt version that had that working ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What do you mean by transplant ?

        Did you use another Qt version that had that working ?

        S Offline
        S Offline
        SimonHill
        wrote on last edited by
        #3

        @SGaist
        I didn't try another version, I mean I have crosscompile the QT5.9.2 everywhere to arm, and copy the library to the arm board, after that export the env :
        QTDIR='/appfs/apps/share/Qt5'
        QT_QPA_EVDEV_KEYBOARD_PARAMETERS='/dev/input/event0'
        QT_QPA_EVDEV_MOUSE_PARAMETERS='/dev/input/event2'
        QT_QPA_FONTDIR='/appfs/apps/share/Qt5/fonts'
        QT_QPA_GENERIC_PLUGINS='tslib:'
        QT_QPA_PLATFORM='linuxfb:fb=/dev/fb0'
        QT_QPA_PLATFORM_PLUGIN_PATH='/usr/lib/plugin'

        The example can be runing , just can't get the keypress event, when I cat the /dev/input/event0 file ,it will have data when I pressing the key

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          How are you starting the application on the target ?
          As which user ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            How are you starting the application on the target ?
            As which user ?

            S Offline
            S Offline
            SimonHill
            wrote on last edited by
            #5

            @SGaist ownner is root , BTW, I check the source code, and add some debug infomation in the qbskeyboard.cpp and make it , and then copy the libqevdevkeyboardplugin.so to the plugins path, it didn't invoke libqevdevkeyboardplugin.so library.
            thereafter it's my plugin path
            root@buildroot /usr/lib/plugin/generic# ls -lh
            total 268
            -rw-r--r-- 1 root root 62.0K Jul 14 01:13 libqevdevkeyboardplugin.so
            -rwxr-xr-x 1 root root 32.0K Jun 17 03:41 libqevdevmouseplugin.so
            -rwxr-xr-x 1 root root 32.1K Jun 17 03:41 libqevdevtabletplugin.so
            -rwxr-xr-x 1 root root 67.0K Jun 17 03:41 libqevdevtouchplugin.so
            -rwxr-xr-x 1 root root 61.3K Jun 17 03:41 libqtuiotouchplugin.so
            root@buildroot /usr/lib/plugin/generic# pwd
            /usr/lib/plugin/generic

            did I missing export some env?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SimonHill
              wrote on last edited by
              #6

              OK, I have solved the problem, beceause my keyboard drive reportEV_MSC intead EV_KEY event to the input system, this is the reason why I didn't get the keypressevent. Anyway Thanks a lot!

              1 Reply Last reply
              2
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Glad you found out and thanks for sharing !

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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