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. How to handle multiple click event at same time?

How to handle multiple click event at same time?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 4 Posters 1.0k Views 2 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1

    In my application i use clickable label and capture video button. when i use both at same time my application is going to hang. what should i need to do to avoid application hang issue ?

    JonBJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      In my application i use clickable label and capture video button. when i use both at same time my application is going to hang. what should i need to do to avoid application hang issue ?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Qt-embedded-developer
      Nobody can answer from such a vague description. And also, FWIW, you can't have multiple clicks at the same time, one click comes after the other....

      Q 1 Reply Last reply
      0
      • JonBJ JonB

        @Qt-embedded-developer
        Nobody can answer from such a vague description. And also, FWIW, you can't have multiple clicks at the same time, one click comes after the other....

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @JonB if one process is in progress and other event trigger at that time what i need to do ?

        should i have to disable the button or assign priority and not allow other process to get trigger ?

        JonBJ 1 Reply Last reply
        0
        • Q Qt embedded developer

          @JonB if one process is in progress and other event trigger at that time what i need to do ?

          should i have to disable the button or assign priority and not allow other process to get trigger ?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Qt-embedded-developer
          Sorry, but I cannot say any more about a situation which is so vague, "it depends". I will leave others to answer if they feel they can without further information.

          Don't forget --- may or may not be relevant to your situation --- that Qt processes events/signals/slots sequentially from the event queue. One slot will complete before the next slot is invoked.

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

            Hi,

            You should explain exactly what both triggers.
            As @JonB already wrote two things cannot happen exactly at the same time.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            Q 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              You should explain exactly what both triggers.
              As @JonB already wrote two things cannot happen exactly at the same time.

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on last edited by
              #6

              @SGaist

              1] capture video button is capturing video. this button is hardware button which capturing image and video on click of it.
              2] clickable label is creating new session on click of it.

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

                How is that hardware button handled in your application ?
                What does it trigger ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                Q 1 Reply Last reply
                0
                • SGaistS SGaist

                  How is that hardware button handled in your application ?
                  What does it trigger ?

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by
                  #8

                  @SGaist hardware button is start video capturing so my video recording get started.
                  during recording if clickable label i click then current recording get stop and new recording get started

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

                    Hence my question: how does the hardware trigger that in your application ?

                    By the way, why a label ? That does not sound like a good control for performing actions on a video recording application.

                    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
                    • S Offline
                      S Offline
                      Shao
                      wrote on last edited by Shao
                      #10

                      Your application hang means crash? or just cannot to anything?

                      if the situation is later, I think you need to anyother thread to process your video issue.
                      You need to use qtconcurrent to capture your video.
                      If you use main thread to capture the video, your application can't do other thing(ex:detect click)

                      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