[Interest] Relationship between a QEventLoop and QCoreApplication::exec().

Thiago Macieira thiago.macieira at intel.com
Sun Aug 7 19:06:54 CEST 2016


On domingo, 7 de agosto de 2016 10:17:44 PDT André Somers wrote:
> > Yet, I don't see where the problem is. QDialog::exec() displays a modal
> > dialog. It is not possible to click again on the menu or button that
> > displayed the dialog in the first place. It effectively breaks recursive
> > looping, right?
> Wrong. There are many sources of events, and only the ones related to user
> input are blocked this way. 

Indeed. Think of your sockets, that are still receiving data and that is being 
processed. Are you sure that your dialog wasn't created as a response to some 
data being processed earlier?

Think also of all the timers that will time out.

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




More information about the Interest mailing list