break is possible in qt's foreach