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. When the QPushButton is clicked continuously on the Android platform, the release event cannot be triggered
Forum Updated to NodeBB v4.3 + New Features

When the QPushButton is clicked continuously on the Android platform, the release event cannot be triggered

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 534 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.
  • G Offline
    G Offline
    good_hearted
    wrote on last edited by
    #1

    I used QT buttons on Android platform. I found that there is a certain probability that the button will not trigger the release event when I press the button or click the button quickly. It is always in the press event. Do you have any solutions?

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

      Hi and welcome to the forums.
      What Qt version are you seeing this with ?

      Also, did you test it with a sample that does nothing but QDebug() in both pressed and released to be sure you are not blocking the event loop ?

      G 1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        Is it touch screen, right? If yes, check whether QEvent::TouchEnd shows up.

        G 2 Replies Last reply
        0
        • JoeCFDJ JoeCFD

          Is it touch screen, right? If yes, check whether QEvent::TouchEnd shows up.

          G Offline
          G Offline
          good_hearted
          wrote on last edited by
          #4

          @JoeCFD said in When the QPushButton is clicked continuously on the Android platform, the release event cannot be triggered:

          QEvent::TouchEnd
          Yes, touch screen,Please tell me how to ensure that the button will pop up after the hand is raised. Can you give me an example

          1 Reply Last reply
          0
          • mrjjM mrjj

            Hi and welcome to the forums.
            What Qt version are you seeing this with ?

            Also, did you test it with a sample that does nothing but QDebug() in both pressed and released to be sure you are not blocking the event loop ?

            G Offline
            G Offline
            good_hearted
            wrote on last edited by
            #5

            @mrjj
            When the button is pressed and released, the start and stop messages will be sent. In addition, nothing else will be done. Then the button status image is changed through the style sheet. It is suspected that the release event is not triggered by the underlying Android

            1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              Is it touch screen, right? If yes, check whether QEvent::TouchEnd shows up.

              G Offline
              G Offline
              good_hearted
              wrote on last edited by
              #6

              @JoeCFD
              I found that qevent:: touchend cannot be captured in EventFilter

              JoeCFDJ 1 Reply Last reply
              0
              • G good_hearted

                @JoeCFD
                I found that qevent:: touchend cannot be captured in EventFilter

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #7

                @good_hearted can you see button release event with EventFilter? Normally both events will be sent out.

                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