Seems a bug in Qt Documentation
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
It should give you compilation error if you copy-paste the code from 4.8 documentation. Future release documentation have fixed this issue
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!
Hi and welcome to devnet,
Fix underway for Qt 4