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 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest