Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-17233

should allow return value in blocking queued connection

XMLWordPrintable

    • e248183fc443c0e2c133506dfb7c38560aee4948

      Given the statement in the documentation that a blocking queued connection blocks until the slot returns, one would expect to be able to useQMetaObject:: invokeMethod to call a blocking connection to call a slot and get the return value (which one can't - for obvious reasons - do with a plain QueuedConnection).

      This would be a useful technique to make synchronous cross-thread calls, and so I would really love to see it implemented. At minimum, though, it seems the documentation should explain this not-entirely-obvious limitation.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            matthew.woehlke Matthew Woehlke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes