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

Documentation for QThread describes unrecommended design patterns

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes