Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
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);
....