Custom QAbstractEventDispatcher
Hello !
According to QT doc (and code ) it is possible to use a custom QAbstractEventDispatcher. Apparently, the QAbstractEventDispatcher should be created before Qapplication. However, I don't find how to create this QAbstractEventDispatcher.
Some ideas ??
P.S. : the code involved in the use of QAbstractEventDispatcher follows :
qcoreapplication.cpp, in init() :
....
// use the event dispatcher created by the app programmer (if any)
if (!QCoreApplicationPrivate::eventDispatcher)
QCoreApplicationPrivate::eventDispatcher = d->threadData->eventDispatcher;
// otherwise we create one
if (!QCoreApplicationPrivate::eventDispatcher)
d->createEventDispatcher();
Q_ASSERT(QCoreApplicationPrivate::eventDispatcher != 0);
....