Add note to add -DQT_NO_FOREACH and fix code

Authored by hindenburg on Mar 1 2019, 4:48 AM.