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

QThread docs (5.2) contain compilation error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.2.0
    • Documentation
    • None
    • 4b0ad2fcc8689a780b3337c1f122d413eba713f8

    Description

      In the docs for QThread, the first code part:
      http://qt-project.org/doc/qt-5/qthread.html#details

      workerThread is defined as a Controller member of type QThread. This makes the first connect() statement to fail compilation since connect expects a pointer:

      connect(workerThread, &QThread::finished, worker, &QObject::deleteLater);

      Attachments

        For Gerrit Dashboard: QTBUG-37359
        # Subject Branch Project Status CR V

        Activity

          People

            treinio Topi Reiniƶ
            frankiesimon Frankie Simon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes