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. Qt5: clicked() signal of buttons emitted twice
Qt 6.11 is out! See what's new in the release blog

Qt5: clicked() signal of buttons emitted twice

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 6.2k 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.
  • A Offline
    A Offline
    andishock
    wrote on last edited by
    #1

    Hello,

    in some application running on a Tablet PC I get the strange behavior that if I click a button via touch panel, the clicked() signal seems to be emitted twice with a short delay between. For example, if I click on a button which toggles a widget, it shows up and shortly afterwards vanishes again.
    When using the mouse everything is working fine. The same applies for the touch panel, if I compile the application with Qt 4.8.4.

    Any suggestions or comments..?

    Thanks in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SetBetterPass
      wrote on last edited by
      #2

      maybe you can try add a timer to your application which will work as filter, if signal comes until timer is out it will ignore it

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andishock
        wrote on last edited by
        #3

        In the meantime I have done a work around for this issue as suggested above by an appropriate event filter.
        Nevertheless, the behavior is still the same even when compiling with Qt5.0.1. While playing around with other systems, I could observe this behavior only when running my program compiled with Qt5.0.x under Windows 8. Under Windows XP everything seems fine.
        Maybe this gives a hint to the origin of the failure...

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

          Same problem here, QT 5.0.2 under Windows 8 with touch panel

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mariolat
            wrote on last edited by
            #5

            Updating to 5.1.0 solves the problem

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Buckets
              wrote on last edited by
              #6

              Are you using an activated() signal at all?

              If you are then you will trigger both the clicked signal and activated signal.

              ba ba ba
              ba na na na

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mariolat
                wrote on last edited by
                #7

                No, I used the clicked() signal

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  Please file a bug report then. Bugs reported in this forum are not picked up by developers.

                  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