Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Seems a bug in Qt Documentation

Seems a bug in Qt Documentation

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 855 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    binsqt
    wrote on last edited by
    #1

    http://qt-project.org/doc/qt-4.8/qthread.html

    In the example, class Controller:
    @
    connect(workerThread, SIGNAL(finished()), worker, SLOT(deleteLater()));
    @
    ==>
    @
    connect(&workerThread, SIGNAL(finished()), worker, SLOT(deleteLater()));
    @
    Notice the "&".

    [andreyc EDIT] Added @ around code

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      It should give you compilation error if you copy-paste the code from 4.8 documentation. Future release documentation have fixed this issue

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        It might not give compilation errors, but a compilation error that no cast was used from int to pointer use or something like it. But use the 5.3 docs, they are updated!

        Greetz, Jeroen

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Fix underway for Qt 4

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved