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

Disallow moveToThread(this)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • Core: Threads
    • None

    Description

      It's quite surprising that moveToThread(this) is actually allowed.

      I have seen this used in a lot of real customer code. People do not understand that it's a crash waiting to happen - and one that's hard to debug even.

      It's very un-Qt to allow something that's broken with no reason for it.

      It's probably 6.0 material to completely disallow this. So at least a deprecation of the behaviour along with a warning would be good.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            bothorsen Bo Thorsen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes