Returns the currently executing QThread object. Note that the primary thread (ie; the one main() was called by first thing) correctly returns a pointer to an internal thread object.
- Warning:
- All QThread usage is non-trivial and thus should not be used during static data initialisation and destruction. I've put in an
assert()
to help you catch these in debug mode.