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

Add overload for QMetaObject::invokeMethod to return a QFuture for the result of the method

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • None
    • None

    Description

      I see the work that has been done to make QFuture and signals/slots more cohesive. It would be nice to do something similar for QMetaObject::invokeMethod. Specifically, it would be helpful to have an overload of QMetaObject::invokeMethod that instead provides a QFuture for the result of the invoked method. This would allow writing classes that have public functions that utilize invokeMethod to call the underlying private functions. These public functions could either have a signal connected to them or another class/object (even in another thread) could safely call these public functions directly. This would help to further make the asynchronous interactions in Qt more flexible to fit different scenarios.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hogand Doug Hogan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes