Sunday, July 6th 2008, 3:33pm UTC+1

You are not logged in.

  • Login
  • Register

1

Thursday, May 15th 2008, 12:21pm

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);

....
  • Go to the top of the page

Rate this thread