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

additional event like QEvent::ThreadChange posted to the object in the new thread

    XMLWordPrintable

Details

    Description

      QObject::moveToThread sends an event which can be processed by the object in the current thread before it is moved.
      Often the object needs to do processing after the move, and this currently requires handling the ThreadChange to post a new user defined event.

      It would be useful if Qt handled this common use case by posting the event for you, in the same way that it recreates timers in the new thread for you.

      Attachments

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

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            shkearns Shane Kearns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes