It depends on exactly what you're trying to accomplish. Factors such as duplicate entires and ordering come into play if you're dealing with lists. If you just want to know which elements the two lists have in common you could do this:
QSet<QString> intersection = list1.toSet().intersect(list2.toSet());