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

QThread documentation doesn't show example code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.5
    • Documentation
    • None

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes