Does not compile with Qt. Problems with iterating through map.