[Interest] Relationship between a QEventLoop and QCoreApplication::exec().
Thiago Macieira
thiago.macieira at intel.com
Thu Aug 4 07:31:20 CEST 2016
On quinta-feira, 4 de agosto de 2016 04:21:44 PDT Uwe Rathmann wrote:
> Having to write this code without nested loops ( f.e. QDialog::exec() )
> leads to 3 method ...
>
> - before askForOption
> - between askForOption and doYouReallyWantTo
> - after doYouReallyWantTo
>
> ... where you always have the problem to transfer the variables from the
> stack ( here option ).
>
> Once your code ends up in sequences of between-GUI-interactions methods
> you will have way more problems, than what nested event loops might be.
>
> So yes nested loops might be a problem, but not using them is IMHO the
> wrong consequence.
I disagree. You should try to split. Lambdas might help.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list