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. Android Multitouch: QEvent::TouchEnd emitted ONLY if there are no more fingers on the Screen
Forum Updated to NodeBB v4.3 + New Features

Android Multitouch: QEvent::TouchEnd emitted ONLY if there are no more fingers on the Screen

Scheduled Pinned Locked Moved Mobile and Embedded
9 Posts 2 Posters 2.3k 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.
  • M Offline
    M Offline
    marco88
    wrote on last edited by
    #1

    Hello guys,

    The QTouchEvent works perfectly with only one finger, with two fingers it works nearly as expected, i mean i receive a second TouchUpdate, but not a second TouchBegin. If i lift one of the two finger off the screen i get no TouchEnd (i get no event at all, probably because there was not a second TouchBegin), i need to remove all the two fingers for getting the TouchEnd signal, so my question is HOW can i know if one of the two finger has been lifted from the screen?

    Compile platform:
    Windows 8.1 64bit - Qt Creator 3.2.2 - Qt 5.3.2

    Deploy platform:
    Android 4.3 (Samsung Galaxy S III)

    Thanks

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

      Hi and welcome to devnet,

      You should add which version of Qt you are using, with which OS on which platform

      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
      • M Offline
        M Offline
        marco88
        wrote on last edited by
        #3

        [quote author="SGaist" date="1417818774"]Hi and welcome to devnet,

        You should add which version of Qt you are using, with which OS on which platform[/quote]

        Hello, thanks, post updated, let me know if anything else can be useful.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marco88
          wrote on last edited by
          #4

          I found i do not get a second TouchBegin, but just another TouchUpdate when i put the second finger on the screen... Is a valuable solution splitting into 2 widgets (as i need one possible touch for a first half of the screen and one possible touch for the second half of the screen)?

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

            That's normal, added and removed fingers will get you TouchUpdate events. AFAIK, you should check the state of the TouchPoint associated to the QTouchEvent you are getting and act accordingly.

            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
            • M Offline
              M Offline
              marco88
              wrote on last edited by
              #6

              Sure, but i do not get the TouchUpdate when i lift/remove the second finger, that's the problem... Getting the TouchUpdate when the second finger (one of the two finger on the screen) is removed would fix all my problems...

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

                Then you may have found a bug. You should check the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not please consider opening a new report providing a minimal compilable example that reproduces this behavior

                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
                • M Offline
                  M Offline
                  marco88
                  wrote on last edited by
                  #8

                  [quote author="SGaist" date="1417991535"]Then you may have found a bug. You should check the "bug report system":http://bugreports.qt-project.org to see if it's something known. If not please consider opening a new report providing a minimal compilable example that reproduces this behavior [/quote]

                  Reported on the bug report system, this behaviour has been confirmed to be a bug:

                  https://bugreports.qt-project.org/browse/QTBUG-43177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

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

                    Thanks for the link and detailed report

                    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