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. Linux application does not accept keyboard input
Forum Updated to NodeBB v4.3 + New Features

Linux application does not accept keyboard input

Scheduled Pinned Locked Moved General and Desktop
linuxkeyboard
9 Posts 2 Posters 10.3k Views 2 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.
  • C Offline
    C Offline
    cmulcahy
    wrote on 1 Jun 2015, 21:22 last edited by
    #1

    Hi. I have an application that I'm compiling and testing on Linux, Mac and Windows. I'm compiling with Qt 5.4.1. Mac and Windows is going well but the Linux application does not accept keyboard input. I have tested on a dozen computers of various versions; all exhibit the same behavior.

    I can paste into the text fields but cannot type. I believe I have solved this problem once before but did not make note of the solution and cannot find the answer on the web. It is something to do with xcb.

    Help. Can someone shed some light on this issue and provide some guidance?

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Jun 2015, 21:31 last edited by
      #2

      Hi,

      That's a bit vague:

      • What kind of application ?
      • QtQuick ? Widget ?
      • What linux distribution ?
      • Physical / Virtual keyboard ?

      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
      • C Offline
        C Offline
        cmulcahy
        wrote on 1 Jun 2015, 21:38 last edited by
        #3

        It's a Widget application using QApplication.

        It's a physical keyboard on several different computers including Ubuntu, Redhat, CentOS, Kali. Every single Linux system.

        I did just notice that when I run it from the command line I get:

        xkbcommon: ERROR: failed to add default include path auto
        Qt: Failed to create XKB context
        Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provide several search paths and/or make sure that XKB configuration data directory contains recent enough contents.
        

        That's at runtime but I really hope the answer is a compile-time answer since I cannot expect my end users to know how to fix it since even I can't figure it out. :)

        Thanks

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cmulcahy
          wrote on 1 Jun 2015, 21:45 last edited by
          #4

          Temporary client-side fix is:

          export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
          

          Obviously, that's less than optimal since I hope to not require end-users to do that.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 1 Jun 2015, 21:49 last edited by
            #5

            Can you check if you have the same behavior with Qt 5.5 ?

            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
            • C Offline
              C Offline
              cmulcahy
              wrote on 1 Jun 2015, 22:09 last edited by
              #6

              I would love to but can't find 5.5.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 1 Jun 2015, 22:11 last edited by
                #7

                You can find the beta here

                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
                • C Offline
                  C Offline
                  cmulcahy
                  wrote on 2 Jun 2015, 12:51 last edited by
                  #8

                  I haven't closed this one because I'm still trying to compile 5.5.0. Seems I have to work through this bug:
                  https://bugreports.qt.io/browse/QTBUG-44998
                  Unrelated to this open issue so will pursue that one elsewhere and come back to this ticket as soon as I can.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 2 Jun 2015, 23:04 last edited by
                    #9

                    If it's the Qt3D problem, just remove the folder from the sources when you configure Qt to build since you don't want OpenGL anyway

                    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

                    1/9

                    1 Jun 2015, 21:22

                    • Login

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