Doc: QThread: clarify that start() always creates the event dispatcher

Fixes: QTBUG-101283
Pick-to: 6.2 6.3
Change-Id: Ibf4acec0f166495998f7fffd16d6e4692be24409
Reviewed-by: Keith Kyzivat <keith.kyzivat@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Thiago Macieira 2022-02-24 17:50:54 -08:00
parent 4ff5a571b3
commit 867fee2c15

View File

@ -996,8 +996,11 @@ QAbstractEventDispatcher *QThread::eventDispatcher() const
Sets the event dispatcher for the thread to \a eventDispatcher. This is
only possible as long as there is no event dispatcher installed for the
thread yet. That is, before the thread has been started with start() or, in
case of the main thread, before QCoreApplication has been instantiated.
thread yet.
An event dispatcher is automatically created for the main thread when \l
QCoreApplication is instantiated and on start() for auxiliary threads.
This method takes ownership of the object.
*/
void QThread::setEventDispatcher(QAbstractEventDispatcher *eventDispatcher)