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. QPushButton stay pressed after released finger
Forum Updated to NodeBB v4.3 + New Features

QPushButton stay pressed after released finger

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 741 Views
  • 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.
  • N Offline
    N Offline
    NGV_Maxime
    wrote on last edited by
    #1

    Screenshot_2019-10-08-17-15-37.png

    Hi,

    I have a problem with my app (on Android), specifically with a QPushButton. A button remains pressed (see image above) if I execute the following procedure:

    1: Press and hold the button press with a first finger.
    2: With a second finger, press another spot on the screen.
    3: Release of the first finger.
    4: Releasing the second finger

    The picture shows the problem on the first ON / OFF button .

    This problem appears with all the buttons.

    Can you help me ?

    Thank you in advance.

    M 1 Reply Last reply
    0
    • N NGV_Maxime

      Screenshot_2019-10-08-17-15-37.png

      Hi,

      I have a problem with my app (on Android), specifically with a QPushButton. A button remains pressed (see image above) if I execute the following procedure:

      1: Press and hold the button press with a first finger.
      2: With a second finger, press another spot on the screen.
      3: Release of the first finger.
      4: Releasing the second finger

      The picture shows the problem on the first ON / OFF button .

      This problem appears with all the buttons.

      Can you help me ?

      Thank you in advance.

      M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      As always, what is the Qt version etc...

      In version 5.12 Qt broke pressing-related events in Android, so I'd suggest trying with 5.11.3 and if that works, either stay there or capture mouse events in your Qt version and try to design a kludge to work around it.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NGV_Maxime
        wrote on last edited by
        #3

        I try with QT 5.6.0 and QT 5.13.1.

        What's a kludge ?

        Thanks

        1 Reply Last reply
        0
        • N Offline
          N Offline
          NGV_Maxime
          wrote on last edited by
          #4

          Hi,

          Has anyone ever encountered this problem?

          Is there a function to see if the smartphone screen is pressed or touched?

          I could possibly check every 100ms for example if the screen is touched or not to disable the key screen is not touched.
          What do you think ?

          thanks

          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