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. Qt 6.7.1 Android Missing Input Handlings

Qt 6.7.1 Android Missing Input Handlings

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 4 Posters 1.0k 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.
  • O Offline
    O Offline
    osos11
    wrote on last edited by osos11
    #1

    Hi,
    I am using Ubuntu 22.04 and Qt 6.7.1 for Android arm64v8.
    I want to compile a project which includes the following line: https://github.com/osos11-Git/qtgamepadlegacy/blob/dev_android_fix/src/plugins/gamepads/android/src/qandroidgamepadbackend_p.h#L52

    Qt can't find "GenericMotionEventListener" and "KeyEventListener" because these two have been moved to another class. I found information about this, but I don't know what I should do to include the other class on the project: https://codereview.qt-project.org/c/qt/qtbase/+/504570/3

    Does anyone have any ideas for this situation?

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • O osos11

      Hi,
      I am using Ubuntu 22.04 and Qt 6.7.1 for Android arm64v8.
      I want to compile a project which includes the following line: https://github.com/osos11-Git/qtgamepadlegacy/blob/dev_android_fix/src/plugins/gamepads/android/src/qandroidgamepadbackend_p.h#L52

      Qt can't find "GenericMotionEventListener" and "KeyEventListener" because these two have been moved to another class. I found information about this, but I don't know what I should do to include the other class on the project: https://codereview.qt-project.org/c/qt/qtbase/+/504570/3

      Does anyone have any ideas for this situation?

      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @osos11 said in Qt 6.7.1 Android Missing Input Handlings:

      because these two have been moved to another class

      Then include the header file of that class or use older Qt version to build this project if you do not want to modify its source code.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      O 1 Reply Last reply
      0
      • jsulmJ jsulm

        @osos11 said in Qt 6.7.1 Android Missing Input Handlings:

        because these two have been moved to another class

        Then include the header file of that class or use older Qt version to build this project if you do not want to modify its source code.

        O Offline
        O Offline
        osos11
        wrote on last edited by
        #3

        @jsulm
        I couldn't find the header path of the new class. No matter what I try I can't access it. What exactly do I need to write?

        Pl45m4P 1 Reply Last reply
        0
        • O osos11

          @jsulm
          I couldn't find the header path of the new class. No matter what I try I can't access it. What exactly do I need to write?

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @osos11 said in Qt 6.7.1 Android Missing Input Handlings:

          I couldn't find the header path of the new class.

          If I'm not mistaken it went here

          • https://codereview.qt-project.org/c/qt/qtbase/+/504570/3/src/plugins/platforms/android/androidjniinput.h

          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          O 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @osos11 said in Qt 6.7.1 Android Missing Input Handlings:

            I couldn't find the header path of the new class.

            If I'm not mistaken it went here

            • https://codereview.qt-project.org/c/qt/qtbase/+/504570/3/src/plugins/platforms/android/androidjniinput.h
            O Offline
            O Offline
            osos11
            wrote on last edited by
            #5

            @Pl45m4
            Yes, i need this file but there is a problem.
            The file and path you specified do not exist in the directory where Qt is installed.

            1 Reply Last reply
            0
            • O Offline
              O Offline
              osos11
              wrote on last edited by
              #6

              I still can't figure it out :(

              1 Reply Last reply
              0
              • E Offline
                E Offline
                elbunce
                wrote on last edited by
                #7

                Yeah, unfortunately dealing with the same fallout from the move into the platform plugins. Even with the header you'd need to figure out how to get CMake to link the gamepad plugin to the Qt Core platform plugin.

                Generally this looks like an ill-considered relocation of these particular classes/functions since the only place I can find them used is by QtGamepad and it's QtUniversalInput successor.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  elbunce
                  wrote on last edited by
                  #8

                  Looks like the fixed this issue with a partial revert for Qt 6.8+ See: https://codereview.qt-project.org/c/qt/qtbase/+/566570

                  Wish they'd back port to 6.7, but I understand...

                  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