foreach() and QCoreApplication alone would make me switch in no time (and I did)