[Interest] Event handling for QObjects created before QApplication

Thiago Macieira thiago.macieira at intel.com
Mon Sep 22 16:46:48 CEST 2014


On Monday 22 September 2014 10:11:01 Till Oliver Knoll wrote:
> So in theory it could mean that (only) events sent by
> QCoreApplication::sendEvent are getting through to your QObject, even
> without a QCoreApplication instance being around.

Not even sendEvent:

inline bool QCoreApplication::sendEvent(QObject *receiver, QEvent *event)
{  if (event) event->spont = false; return self ? self-
>notifyInternal(receiver, event) : false; }

Note how sendEvent uses the self pointer.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list