You shouldn't use QMultiMap here, because you loose the order of conditions. Use a list of pairs instead.