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

Improve QThread interface to not leak memory

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.7.3
    • Core: Threads
    • None

    Description

      It seems to me that the current QThread does not have anything in place to clean up the QObjects that have been pushed to it via "moveToThread".

      I have created a very simple subclass of QThread (see attachment) that has a replacement method (for moveToThread) "adoptObject" which does not have this problem. Maybe something like this could be incorporated into a future version of QThread.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            zeno Zeno Endemann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes