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

Documentation for QThread describes unrecommended design patterns

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.0.0
    • Documentation
    • None

    Description

      The documentation for QThread was written when it was abstract and subclassing was necessary. However, in Qt 4.4, it got a default implementation of run() which spins an event loop. Subclassing QThread is no longer necessary, and we don't even recommend this.

      See Brad's blog for more details:

      http://blog.qt.digia.com/2010/06/17/youre-doing-it-wrong/

      As he points out in the comments, the documentation needs to be updated to describe the recommended way of using QThread.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes