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. why my slot is called Wait 30 seconds after emit

why my slot is called Wait 30 seconds after emit

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.4k 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.
  • J Offline
    J Offline
    jimfar
    wrote on last edited by
    #1

    this is the case that i emit a two image to a slot using QueuedConnection way.but when the call time is greater than 4000 or more ,it will become very slow to call slot function ,it will be called after 30s

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

      Hi,

      What are you doing in that slot ?
      Where are coming these images from ?
      How big are they ?
      Are you doing all of that in the same thread ?

      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
      1
      • J Offline
        J Offline
        jimfar
        wrote on last edited by
        #3

        the slot execution time is less than 10ms just show a image on second screen ,the image is from another thread. their size is 3M .
        Are you doing all of that in the same thread ?--> no in different thread .

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jimfar
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            How fast are you emitting these images ?

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

              about 10s~~20s ,if need wait about
              30s ,then the later singal will Send it every 40~70seconds

              1 Reply Last reply
              0
              • BuckwheatB Offline
                BuckwheatB Offline
                Buckwheat
                wrote on last edited by
                #7

                @jimfar
                Hi.

                1. How busy is your event queue?
                2. Are you sending shared data or raw arrays for the image?

                If you are not passing QSharedData (or similar) based data, QueuedConnections are sent via the event queue. This could be a data passing issue copying a large buffer of data and slowing down your connection. If the queue is extremely busy then it may take longer that thought to process the queue.

                Dave Fileccia

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jimfar
                  wrote on last edited by
                  #8

                  about 10~20s for every times.no i send three QImage to the Mainthread. and i found the QT5.8 not has the similar situation. but QT5.9.1 or QT5.9.3 does have. i will change to the QT5.10 to test

                  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