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

QThread documentation doesn't show example code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.8.5
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      Documentation doesn't show example code:
      http://qt-project.org/doc/qt-4.8/qthread.html

      After this sentence, no example code is visible:
      "Another way to make code run in a separate thread, is to subclass QThread and reimplement run(). For example:"
      <empty box>

      qthread.cpp should be changed from
      \snippet code/src_corelib_thread_qthread.cpp reimpl-run
      to
      \snippet doc/src/snippets/code/src_corelib_thread_qthread.cpp reimpl-run

      BTW:
      remove unused 'QThread workerThread' in 'Worker' class in:
      doc/src/snippets/code/src_corelib_thread_qthread.cpp

        Attachments

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

          Activity

            People

            Assignee:
            docteam Qt Documentation Team
            Reporter:
            crueegg Christian Rüegg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes