Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Keyboard issues
Qt 6.12 LTS is out! See what's new in the release blog

Keyboard issues

Scheduled Pinned Locked Moved Mobile and Embedded
16 Posts 3 Posters 8.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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #6

    Did you check whether you have the rights to access that device ?

    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
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #7

      Yes I did. Currently, I'm running the application as root to avoid any problem related to the rights.

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

        Then call your application with QT_DEBUG_PLUGINS=1 set, you'll see if there's something happening with the plugins.

        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
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #9

          Setting QT_DEBUG_PLUGINS=1 leads to no warnings nor messages. The pressed keys are still sent to the console.

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

            Can you show your configuration and the command used to launch your application ?

            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
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #11

              It's a Raspberry Pi Model B+ running a linux buildroot o.s.:

              @

              uname -a

              Linux rpi 3.12.26 #1 PREEMPT Thu Oct 2 20:45:27 CEST 2014 armv6l GNU/Linux
              @

              Here the command I use to launch my application:

              @
              ./myapp
              @

              I also tried:

              @
              ./myapp < /dev/tty1
              @

              Even with the QT_QPA_EVDEV_KEYBOARD_PARAMETERS variable set, when I hit any key on the keyboard it will show the char on the console, instead of being grabbed by the application. I.e. no QCoreApplication::event() is emitted.

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

                What parameters did you set on QT_QPA_EVDEV_KEYBOARD_PARAMETERS ?

                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
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #13

                  As I said in a previous post I tried the following:

                  @
                  export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=‘grab=1’
                  export QT_QPA_EVDEV_KEYBOARD_PARAMETERS=‘/dev/input/input0;grab=1’
                  @

                  Anyway the keyboard is the only input device available and also the only USB device connected.

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

                    Are you running your application through ssh ?

                    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
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #15

                      The behavior is the same if either I launch the application through ssh or locally.

                      1 Reply Last reply
                      0
                      • Halo_HaoH Offline
                        Halo_HaoH Offline
                        Halo_Hao
                        wrote on last edited by
                        #16

                        run:cat /proc/bus/input/devices

                        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
                        • Unsolved